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

Definition

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.

Gilt für