IParsable<TSelf>.Parse(String, IFormatProvider) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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 s
di .
Eccezioni
s
è null
.
Il formato di s
non è corretto.
s
non rappresentabile da TSelf
.