IParsable<TSelf>.Parse(String, IFormatProvider) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Analysiert eine Zeichenfolge in einen Wert.
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
Parameter
- s
- String
Die zu analysierende Zeichenfolge.
- provider
- IFormatProvider
Ein Objekt, das kulturspezifische Formatierungsinformationen zu s
bereitstellt.
Gibt zurück
- TSelf
Das Ergebnis der Analyse s
.
Ausnahmen
s
ist null
.
s
weist nicht das richtige Format auf.
s
ist nicht dargestellt durch TSelf
.