ISpanParsable<TSelf>.Parse Metodo

Definizione

Analizza un intervallo di caratteri in un valore.

public:
 static TSelf Parse(ReadOnlySpan<char> s, IFormatProvider ^ provider);
public static TSelf Parse (ReadOnlySpan<char> s, IFormatProvider? provider);
static member Parse : ReadOnlySpan<char> * IFormatProvider -> 'Self
Public Shared Function Parse (s As ReadOnlySpan(Of Char), provider As IFormatProvider) As TSelf

Parametri

s
ReadOnlySpan<Char>

Intervallo di caratteri da analizzare.

provider
IFormatProvider

Oggetto che fornisce informazioni di formattazione specifiche delle impostazioni cultura relative a s.

Restituisce

TSelf

Risultato dell'analisi sdi .

Eccezioni

Il formato di s non è corretto.

s non rappresentabile da TSelf.

Si applica a