INumberBase<TSelf>.Parse Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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 utf8Text
elementu .
Zwraca
Wynik analizy utf8Text
.
Wyjątki
style
nie jest obsługiwaną NumberStyles wartością.
utf8Text
nie jest w poprawnym formacie.
utf8Text
nie jest reprezentowana przez TSelf
element .
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 s
elementu .
Zwraca
Wynik analizy s
.
Wyjątki
style
nie jest obsługiwaną NumberStyles wartością.
s
nie jest w poprawnym formacie.
s
nie jest reprezentowana przez TSelf
element .
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 s
elementu .
Zwraca
Wynik analizy s
.
Wyjątki
style
nie jest obsługiwaną NumberStyles wartością.
s
to null
.
s
nie jest w poprawnym formacie.
s
nie jest reprezentowana przez TSelf
element .
Dotyczy
Opinia
https://aka.ms/ContentUserFeedback.
Już wkrótce: w ciągu 2024 r. będziemy stopniowo usuwać problemy z usługą GitHub jako mechanizm opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla