IParsable<TSelf>.Parse(String, IFormatProvider) Metodo

Definizione

Analizza una stringa in un valore.

public:
 static TSelf Parse(System::String ^ s, IFormatProvider ^ provider);
public static abstract TSelf Parse(string s, IFormatProvider? provider);
static member Parse : string * IFormatProvider -> 'Self
Public Shared Function Parse (s As String, provider As IFormatProvider) As TSelf

Parametri

s
String

Stringa da analizzare.

provider
IFormatProvider

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

Valori restituiti

TSelf

Risultato dell'analisi sdi .

Eccezioni

s non è nel formato corretto.

s non è rappresentabile da TSelf.

Si applica a