語言

TypeName.Parse(ReadOnlySpan<Char>, TypeNameParseOptions) 方法

定義

將一組字元區間解析成型別名稱。

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所設定的限制。

適用於