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

Definition

Analysiert eine Zeichenfolge in einen Wert.

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

Parameter

s
String

Die zu analysierende Zeichenfolge.

provider
IFormatProvider

Ein Objekt, das kulturspezifische Formatierungsinformationen zu s.

Gibt zurück

TSelf

Das Ergebnis der Analyse s.

Ausnahmen

s ist null.

s ist nicht im richtigen Format vorhanden.

s ist nicht darstellbar durch TSelf.

Gilt für: