INumberBase<TSelf>.IUtf8SpanParsable<TSelf>.TryParse Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente d’analyser une étendue de caractères UTF-8 en une valeur.
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
Paramètres
- utf8Text
- ReadOnlySpan<Byte>
Étendue de caractères UTF-8 à analyser.
- provider
- IFormatProvider
Objet qui fournit des informations de mise en forme spécifiques à la culture sur utf8Text.
- result
- TSelf
Lors du retour, contient le résultat de l’analyse utf8Text réussie ou d’une valeur non définie en cas d’échec.
Retours
true si utf8Text elle a été analysée avec succès ; sinon, false.