TypeName.Parse(ReadOnlySpan<Char>, TypeNameParseOptions) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將一組字元區間解析成型別名稱。
public static System.Reflection.Metadata.TypeName Parse(ReadOnlySpan<char> typeName, System.Reflection.Metadata.TypeNameParseOptions? options = default);
static member Parse : ReadOnlySpan<char> * System.Reflection.Metadata.TypeNameParseOptions -> System.Reflection.Metadata.TypeName
Public Shared Function Parse (typeName As ReadOnlySpan(Of Char), Optional options As TypeNameParseOptions = Nothing) As TypeName
參數
- typeName
- ReadOnlySpan<Char>
一個包含代表要解析型別名稱字元的區間。
- options
- TypeNameParseOptions
一個描述可選 TypeNameParseOptions 參數的物件。
傳回
解析型別名稱。
例外狀況
前提是類型名稱無效。
解析已超過由 MaxNodes所設定的限制。