INumberBase<TSelf>.Parse Metoda

Definicja

Przeciążenia

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Analizuje zakres znaków UTF-8 w wartość.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Analizuje zakres znaków w wartości.

Parse(String, NumberStyles, IFormatProvider)

Analizuje ciąg w wartość.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Analizuje zakres znaków UTF-8 w wartość.

public:
 static override TSelf Parse(ReadOnlySpan<System::Byte> utf8Text, System::Globalization::NumberStyles style, IFormatProvider ^ provider);
public static virtual TSelf Parse (ReadOnlySpan<byte> utf8Text, System.Globalization.NumberStyles style, IFormatProvider? provider);
static member Parse : ReadOnlySpan<byte> * System.Globalization.NumberStyles * IFormatProvider -> 'Self
Public Shared Overrides Function Parse (utf8Text As ReadOnlySpan(Of Byte), style As NumberStyles, provider As IFormatProvider) As TSelf

Parametry

utf8Text
ReadOnlySpan<Byte>

Zakres znaków UTF-8 do przeanalizowania.

style
NumberStyles

Bitowa kombinacja stylów liczbowych, które mogą być obecne w obiekcie utf8Text.

provider
IFormatProvider

Obiekt, który udostępnia informacje o formatowaniu specyficznym dla kultury dotyczące utf8Textelementu .

Zwraca

TSelf

Wynik analizy utf8Text.

Wyjątki

style nie jest obsługiwaną NumberStyles wartością.

utf8Text nie jest w poprawnym formacie.

utf8Text nie jest reprezentowana przez TSelfelement .

Dotyczy

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Analizuje zakres znaków w wartości.

public:
 static TSelf Parse(ReadOnlySpan<char> s, System::Globalization::NumberStyles style, IFormatProvider ^ provider);
public static abstract TSelf Parse (ReadOnlySpan<char> s, System.Globalization.NumberStyles style, IFormatProvider? provider);
static member Parse : ReadOnlySpan<char> * System.Globalization.NumberStyles * IFormatProvider -> 'Self
Public Shared Function Parse (s As ReadOnlySpan(Of Char), style As NumberStyles, provider As IFormatProvider) As TSelf

Parametry

s
ReadOnlySpan<Char>

Zakres znaków do przeanalizowania.

style
NumberStyles

Bitowa kombinacja stylów liczbowych, które mogą być obecne w obiekcie s.

provider
IFormatProvider

Obiekt, który udostępnia informacje o formatowaniu specyficznym dla kultury dotyczące selementu .

Zwraca

TSelf

Wynik analizy s.

Wyjątki

style nie jest obsługiwaną NumberStyles wartością.

s nie jest w poprawnym formacie.

s nie jest reprezentowana przez TSelfelement .

Dotyczy

Parse(String, NumberStyles, IFormatProvider)

Analizuje ciąg w wartość.

public:
 static TSelf Parse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider);
public static abstract TSelf Parse (string s, System.Globalization.NumberStyles style, IFormatProvider? provider);
static member Parse : string * System.Globalization.NumberStyles * IFormatProvider -> 'Self
Public Shared Function Parse (s As String, style As NumberStyles, provider As IFormatProvider) As TSelf

Parametry

s
String

Ciąg do analizy.

style
NumberStyles

Bitowa kombinacja stylów liczbowych, które mogą być obecne w obiekcie s.

provider
IFormatProvider

Obiekt, który udostępnia informacje o formatowaniu specyficznym dla kultury dotyczące selementu .

Zwraca

TSelf

Wynik analizy s.

Wyjątki

style nie jest obsługiwaną NumberStyles wartością.

s nie jest w poprawnym formacie.

s nie jest reprezentowana przez TSelfelement .

Dotyczy