INumberBase<TSelf>.Parse Metoda

Definicja

Przeciążenia

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

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

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Analizuje zakres znaków w wartości.

Parse(String, NumberStyles, IFormatProvider)

Analizuje ciąg w wartości.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Źródło:
INumberBase.cs
Źródło:
INumberBase.cs

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

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 analizy.

style
NumberStyles

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

provider
IFormatProvider

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

Zwraca

TSelf

Wynik analizy utf8Text.

Wyjątki

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

utf8Text nie ma poprawnego formatu.

utf8Text element nie jest reprezentowany przez element TSelf.

Dotyczy

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Źródło:
INumberBase.cs
Źródło:
INumberBase.cs
Źródło:
INumberBase.cs

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 .s

provider
IFormatProvider

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

Zwraca

TSelf

Wynik analizy s.

Wyjątki

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

s nie ma poprawnego formatu.

s element nie jest reprezentowany przez element TSelf.

Dotyczy

Parse(String, NumberStyles, IFormatProvider)

Źródło:
INumberBase.cs
Źródło:
INumberBase.cs
Źródło:
INumberBase.cs

Analizuje ciąg w wartości.

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 .s

provider
IFormatProvider

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

Zwraca

TSelf

Wynik analizy s.

Wyjątki

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

s nie ma poprawnego formatu.

s element nie jest reprezentowany przez element TSelf.

Dotyczy