Język

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

Definicja

Analizuje ciąg w wartości.

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

Parametry

s
String

Ciąg do analizy.

provider
IFormatProvider

Obiekt, który udostępnia informacje o formatowaniu specyficznym dla kultury.s

Zwraca

TSelf

Wynik analizowania s.

Wyjątki

Parametr s ma wartość null.

s nie jest w poprawnym formacie.

s element nie jest reprezentowany przez element TSelf.

Dotyczy