Condividi tramite


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

Definizione

Analizza una stringa in un valore.

public:
 static TSelf Parse(System::String ^ s, IFormatProvider ^ provider);
public static 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 relative a s.

Restituisce

TSelf

Risultato dell'analisi sdi .

Eccezioni

Il formato di s non è corretto.

s non rappresentabile da TSelf.

Si applica a