UInt128.TryParse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
TryParse(ReadOnlySpan<Char>, UInt128) |
嘗試將字元範圍剖析為值。 |
TryParse(String, UInt128) |
嘗試將字串剖析成值。 |
TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt128) |
嘗試將 UTF-8 字元的範圍剖析為值。 |
TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt128) |
嘗試將字串剖析成值。 |
TryParse(String, IFormatProvider, UInt128) |
嘗試將字串剖析成值。 |
TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, UInt128) |
嘗試將 UTF-8 字元的範圍剖析為值。 |
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt128) |
嘗試將字元範圍剖析為值。 |
TryParse(ReadOnlySpan<Byte>, UInt128) |
嘗試將包含數位字串表示的 UTF-8 字元範圍轉換為其相等的 128 位不帶正負號的整數。 |
TryParse(String, NumberStyles, IFormatProvider, UInt128) |
嘗試將字串剖析成值。 |
TryParse(ReadOnlySpan<Char>, UInt128)
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
嘗試將字元範圍剖析為值。
public:
static bool TryParse(ReadOnlySpan<char> s, [Runtime::InteropServices::Out] UInt128 % result);
public static bool TryParse (ReadOnlySpan<char> s, out UInt128 result);
static member TryParse : ReadOnlySpan<char> * UInt128 -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), ByRef result As UInt128) As Boolean
參數
- s
- ReadOnlySpan<Char>
要剖析的字元範圍。
- result
- UInt128
當這個方法傳回時,包含成功剖析 s
或失敗時未定義值的結果。
傳回
true
如果 s
已成功剖析,則為 ,否則為 false
。
適用於
TryParse(String, UInt128)
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
嘗試將字串剖析成值。
public:
static bool TryParse(System::String ^ s, [Runtime::InteropServices::Out] UInt128 % result);
public static bool TryParse (string? s, out UInt128 result);
static member TryParse : string * UInt128 -> bool
Public Shared Function TryParse (s As String, ByRef result As UInt128) As Boolean
參數
- s
- String
要剖析的字串。
- result
- UInt128
當這個方法傳回時,包含成功剖析 s
或失敗時未定義值的結果。
傳回
true
如果 s
已成功剖析,則為 ,否則為 false
。
適用於
TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt128)
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
嘗試將 UTF-8 字元的範圍剖析為值。
public:
static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = IUtf8SpanParsable<UInt128>::TryParse;
public static bool TryParse (ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out UInt128 result);
static member TryParse : ReadOnlySpan<byte> * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), provider As IFormatProvider, ByRef result As UInt128) As Boolean
參數
- utf8Text
- ReadOnlySpan<Byte>
要剖析的 UTF-8 字元範圍。
- provider
- IFormatProvider
提供關於 utf8Text
之特定文化特性格式資訊的物件。
- result
- UInt128
傳回時,包含成功剖析 utf8Text
或失敗時未定義值的結果。
傳回
true
如果 utf8Text
已成功剖析,則為 ,否則為 false
。
適用於
TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt128)
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
嘗試將字串剖析成值。
public:
static bool TryParse(ReadOnlySpan<char> s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = ISpanParsable<UInt128>::TryParse;
public static bool TryParse (ReadOnlySpan<char> s, IFormatProvider? provider, out UInt128 result);
static member TryParse : ReadOnlySpan<char> * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), provider As IFormatProvider, ByRef result As UInt128) As Boolean
參數
- s
- ReadOnlySpan<Char>
要剖析的字串。
- provider
- IFormatProvider
提供關於 s
之特定文化特性格式資訊的物件。
- result
- UInt128
當這個方法傳回時,包含成功剖析 s
或失敗時未定義值的結果。
傳回
true
如果 s
已成功剖析,則為 ,否則為 false
。
適用於
TryParse(String, IFormatProvider, UInt128)
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
嘗試將字串剖析成值。
public:
static bool TryParse(System::String ^ s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = IParsable<UInt128>::TryParse;
public static bool TryParse (string? s, IFormatProvider? provider, out UInt128 result);
static member TryParse : string * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (s As String, provider As IFormatProvider, ByRef result As UInt128) As Boolean
參數
- s
- String
要剖析的字串。
- provider
- IFormatProvider
提供關於 s
之特定文化特性格式資訊的物件。
- result
- UInt128
當這個方法傳回時,包含成功剖析 s
或失敗時未定義值的結果。
傳回
true
如果 s
已成功剖析,則為 ,否則為 false
。
適用於
TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, UInt128)
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
嘗試將 UTF-8 字元的範圍剖析為值。
public:
static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = System::Numerics::INumberBase<UInt128>::TryParse;
public static bool TryParse (ReadOnlySpan<byte> utf8Text, System.Globalization.NumberStyles style, IFormatProvider? provider, out UInt128 result);
static member TryParse : ReadOnlySpan<byte> * System.Globalization.NumberStyles * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), style As NumberStyles, provider As IFormatProvider, ByRef result As UInt128) As Boolean
參數
- utf8Text
- ReadOnlySpan<Byte>
要剖析的 UTF-8 字元範圍。
- style
- NumberStyles
數位樣式的位元組合,可以存在於 中 utf8Text
。
- provider
- IFormatProvider
提供關於 utf8Text
之特定文化特性格式資訊的物件。
- result
- UInt128
傳回時,包含成功剖析 utf8Text
或失敗時未定義值的結果。
傳回
true
如果 utf8Text
已成功剖析,則為 ,否則為 false
。
適用於
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt128)
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
嘗試將字元範圍剖析為值。
public:
static bool TryParse(ReadOnlySpan<char> s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = System::Numerics::INumberBase<UInt128>::TryParse;
public static bool TryParse (ReadOnlySpan<char> s, System.Globalization.NumberStyles style, IFormatProvider? provider, out UInt128 result);
static member TryParse : ReadOnlySpan<char> * System.Globalization.NumberStyles * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), style As NumberStyles, provider As IFormatProvider, ByRef result As UInt128) As Boolean
參數
- s
- ReadOnlySpan<Char>
要剖析的字元範圍。
- style
- NumberStyles
數位樣式的位元組合,可以存在於 中 s
。
- provider
- IFormatProvider
提供關於 s
之特定文化特性格式資訊的物件。
- result
- UInt128
當這個方法傳回時,包含成功剖析 s
或失敗時未定義值的結果。
傳回
true
如果 s
已成功剖析,則為 ,否則為 false
。
適用於
TryParse(ReadOnlySpan<Byte>, UInt128)
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
嘗試將包含數位字串表示的 UTF-8 字元範圍轉換為其相等的 128 位不帶正負號的整數。
public:
static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, [Runtime::InteropServices::Out] UInt128 % result);
public static bool TryParse (ReadOnlySpan<byte> utf8Text, out UInt128 result);
static member TryParse : ReadOnlySpan<byte> * UInt128 -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), ByRef result As UInt128) As Boolean
參數
- utf8Text
- ReadOnlySpan<Byte>
範圍,包含代表要轉換之數位的 UTF-8 字元。
- result
- UInt128
當這個方法傳回時,如果轉換成功,則包含相當於 中 utf8Text
所含數位的 128 位不帶正負號的整數值,如果轉換失敗則為零。 此參數會以未初始化的狀態來傳遞,並會覆寫任何原本在結果中提供的值。
傳回
如果 utf8Text
轉換成功,則為 true
,否則為 false
。
適用於
TryParse(String, NumberStyles, IFormatProvider, UInt128)
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
- 來源:
- UInt128.cs
嘗試將字串剖析成值。
public:
static bool TryParse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] UInt128 % result) = System::Numerics::INumberBase<UInt128>::TryParse;
public static bool TryParse (string? s, System.Globalization.NumberStyles style, IFormatProvider? provider, out UInt128 result);
static member TryParse : string * System.Globalization.NumberStyles * IFormatProvider * UInt128 -> bool
Public Shared Function TryParse (s As String, style As NumberStyles, provider As IFormatProvider, ByRef result As UInt128) As Boolean
參數
- s
- String
要剖析的字串。
- style
- NumberStyles
數位樣式的位元組合,可以存在於 中 s
。
- provider
- IFormatProvider
提供關於 s
之特定文化特性格式資訊的物件。
- result
- UInt128
當這個方法傳回時,包含成功剖析 s
或失敗時未定義值的結果。
傳回
true
如果 s
已成功剖析,則為 ,否則為 false
。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應