IUtf8SpanParsable<TSelf>.Parse 方法

定義

將UTF-8字元的範圍剖析為值。

public:
 static TSelf Parse(ReadOnlySpan<System::Byte> utf8Text, IFormatProvider ^ provider);
public static abstract TSelf Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider);
static member Parse : ReadOnlySpan<byte> * IFormatProvider -> 'Self
Public Shared Function Parse (utf8Text As ReadOnlySpan(Of Byte), provider As IFormatProvider) As TSelf

參數

utf8Text
ReadOnlySpan<Byte>

要剖析的UTF-8字元範圍。

provider
IFormatProvider

一個提供關於 utf8Text的文化特定格式資訊的物件。

傳回

TSelf

解析 的結果 utf8Text

例外狀況

utf8Text 格式不正確。

utf8Text 無法由 TSelf表示。

適用於