INumberBase<TSelf>.IUtf8SpanParsable<TSelf>.TryParse Methode

Definition

Versucht, eine Spanne von UTF-8 Zeichen in einen Wert zu analysieren.

 static bool System.IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<System::Byte> utf8Text, IFormatProvider ^ provider, [Runtime::InteropServices::Out] TSelf % result) = IUtf8SpanParsable<TSelf>::TryParse;
static bool IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider provider, out TSelf result);
static member System.IUtf8SpanParsable<TSelf>.TryParse : ReadOnlySpan<byte> * IFormatProvider * 'Self -> bool
 Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), provider As IFormatProvider, ByRef result As TSelf) As Boolean Implements IUtf8SpanParsable(Of TSelf).TryParse

Parameter

utf8Text
ReadOnlySpan<Byte>

Die Spanne von UTF-8 Zeichen, die analysiert werden sollen.

provider
IFormatProvider

Ein Objekt, das kulturspezifische Formatierungsinformationen zu utf8Text.

result
TSelf

Enthält das Ergebnis einer erfolgreichen Analyse oder eines nicht definierten Werts utf8Text für fehler.

Gibt zurück

truewenn utf8Text erfolgreich analysiert wurde; andernfalls . false

Implementiert

Gilt für: