語言

Int128.TryParse 方法

定義

多載

名稱 Description
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, Int128)

嘗試將字元範圍剖析成值。

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, Int128)

嘗試將UTF-8字元的範圍剖析為值。

TryParse(ReadOnlySpan<Char>, IFormatProvider, Int128)

嘗試將字串剖析成值。

TryParse(ReadOnlySpan<Byte>, IFormatProvider, Int128)

嘗試將UTF-8字元的範圍剖析為值。

TryParse(String, Int128)

嘗試將字串剖析成值。

TryParse(ReadOnlySpan<Char>, Int128)

嘗試將字元範圍剖析成值。

TryParse(ReadOnlySpan<Byte>, Int128)

嘗試將包含數字字串表示的 UTF-8 字元區間轉換為其 128 位元有符號整數等價值。

TryParse(String, NumberStyles, IFormatProvider, Int128)

嘗試將字串剖析成值。

TryParse(String, IFormatProvider, Int128)

嘗試將字串剖析成值。

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, Int128)

來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs

嘗試將字元範圍剖析成值。

public:
 static bool TryParse(ReadOnlySpan<char> s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] Int128 % result) = System::Numerics::INumberBase<Int128>::TryParse;
public static bool TryParse(ReadOnlySpan<char> s, System.Globalization.NumberStyles style, IFormatProvider? provider, out Int128 result);
static member TryParse : ReadOnlySpan<char> * System.Globalization.NumberStyles * IFormatProvider * Int128 -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), style As NumberStyles, provider As IFormatProvider, ByRef result As Int128) As Boolean

參數

s
ReadOnlySpan<Char>

要剖析的字元範圍。

style
NumberStyles

一個可以存在 s於 的數字樣式的位元組合。

provider
IFormatProvider

一個提供關於 s的文化特定格式資訊的物件。

result
Int128

當此方法回傳時,包含成功解析 s 的結果,或失敗時為未定義的值。

傳回

true 若 s 成功解析;否則, false。

適用於

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, Int128)

來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs

嘗試將UTF-8字元的範圍剖析為值。

public:
 static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] Int128 % result) = System::Numerics::INumberBase<Int128>::TryParse;
public static bool TryParse(ReadOnlySpan<byte> utf8Text, System.Globalization.NumberStyles style, IFormatProvider? provider, out Int128 result);
static member TryParse : ReadOnlySpan<byte> * System.Globalization.NumberStyles * IFormatProvider * Int128 -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), style As NumberStyles, provider As IFormatProvider, ByRef result As Int128) As Boolean

參數

utf8Text
ReadOnlySpan<Byte>

要剖析的UTF-8字元範圍。

style
NumberStyles

一個可以存在 utf8Text於 的數字樣式的位元組合。

provider
IFormatProvider

一個提供關於 utf8Text的文化特定格式資訊的物件。

result
Int128

回傳時,包含成功解析 utf8Text 的結果,失敗時則為未定義的值。

傳回

true 若 utf8Text 成功解析;否則, false。

適用於

TryParse(ReadOnlySpan<Char>, IFormatProvider, Int128)

來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs

嘗試將字串剖析成值。

public:
 static bool TryParse(ReadOnlySpan<char> s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] Int128 % result) = ISpanParsable<Int128>::TryParse;
public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Int128 result);
static member TryParse : ReadOnlySpan<char> * IFormatProvider * Int128 -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), provider As IFormatProvider, ByRef result As Int128) As Boolean

參數

s
ReadOnlySpan<Char>

要剖析的字串。

provider
IFormatProvider

一個提供關於 s的文化特定格式資訊的物件。

result
Int128

當此方法回傳時,包含成功解析 s 的結果,或失敗時為未定義的值。

傳回

true 若 s 成功解析;否則, false。

適用於

TryParse(ReadOnlySpan<Byte>, IFormatProvider, Int128)

來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs

嘗試將UTF-8字元的範圍剖析為值。

public:
 static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, IFormatProvider ^ provider, [Runtime::InteropServices::Out] Int128 % result) = IUtf8SpanParsable<Int128>::TryParse;
public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Int128 result);
static member TryParse : ReadOnlySpan<byte> * IFormatProvider * Int128 -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), provider As IFormatProvider, ByRef result As Int128) As Boolean

參數

utf8Text
ReadOnlySpan<Byte>

要剖析的UTF-8字元範圍。

provider
IFormatProvider

一個提供關於 utf8Text的文化特定格式資訊的物件。

result
Int128

回傳時,包含成功解析 utf8Text 的結果,失敗時則為未定義的值。

傳回

true 若 utf8Text 成功解析;否則, false。

適用於

TryParse(String, Int128)

來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs

嘗試將字串剖析成值。

public:
 static bool TryParse(System::String ^ s, [Runtime::InteropServices::Out] Int128 % result);
public static bool TryParse(string? s, out Int128 result);
static member TryParse : string * Int128 -> bool
Public Shared Function TryParse (s As String, ByRef result As Int128) As Boolean

參數

s
String

要剖析的字串。

result
Int128

當此方法回傳時,包含成功解析 s 的結果,或失敗時為未定義的值。

傳回

true 若 s 成功解析;否則, false。

適用於

TryParse(ReadOnlySpan<Char>, Int128)

來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs

嘗試將字元範圍剖析成值。

public:
 static bool TryParse(ReadOnlySpan<char> s, [Runtime::InteropServices::Out] Int128 % result);
public static bool TryParse(ReadOnlySpan<char> s, out Int128 result);
static member TryParse : ReadOnlySpan<char> * Int128 -> bool
Public Shared Function TryParse (s As ReadOnlySpan(Of Char), ByRef result As Int128) As Boolean

參數

s
ReadOnlySpan<Char>

要剖析的字元範圍。

result
Int128

當此方法回傳時,包含成功解析 s 的結果,或失敗時為未定義的值。

傳回

true 若 s 成功解析;否則, false。

適用於

TryParse(ReadOnlySpan<Byte>, Int128)

來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs

嘗試將包含數字字串表示的 UTF-8 字元區間轉換為其 128 位元有符號整數等價值。

public:
 static bool TryParse(ReadOnlySpan<System::Byte> utf8Text, [Runtime::InteropServices::Out] Int128 % result);
public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Int128 result);
static member TryParse : ReadOnlySpan<byte> * Int128 -> bool
Public Shared Function TryParse (utf8Text As ReadOnlySpan(Of Byte), ByRef result As Int128) As Boolean

參數

utf8Text
ReadOnlySpan<Byte>

範圍,包含代表要轉換之數位的UTF-8字元。

result
Int128

當此方法回傳時,包含128位元有號整數值,若轉換成功,則等同於該 utf8Text 數字;若轉換失敗則為零。 這個參數會未初始化傳遞;將覆寫原本在結果中提供的任何值。

傳回

true若utf8Text成功轉換;否則,。 false

適用於

TryParse(String, NumberStyles, IFormatProvider, Int128)

來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs

嘗試將字串剖析成值。

public:
 static bool TryParse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider, [Runtime::InteropServices::Out] Int128 % result) = System::Numerics::INumberBase<Int128>::TryParse;
public static bool TryParse(string? s, System.Globalization.NumberStyles style, IFormatProvider? provider, out Int128 result);
static member TryParse : string * System.Globalization.NumberStyles * IFormatProvider * Int128 -> bool
Public Shared Function TryParse (s As String, style As NumberStyles, provider As IFormatProvider, ByRef result As Int128) As Boolean

參數

s
String

要剖析的字串。

style
NumberStyles

一個可以存在 s於 的數字樣式的位元組合。

provider
IFormatProvider

一個提供關於 s的文化特定格式資訊的物件。

result
Int128

當此方法回傳時,包含成功解析 s 的結果,或失敗時為未定義的值。

傳回

true 若 s 成功解析;否則, false。

適用於

TryParse(String, IFormatProvider, Int128)

來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs
來源:
Int128.cs

嘗試將字串剖析成值。

public:
 static bool TryParse(System::String ^ s, IFormatProvider ^ provider, [Runtime::InteropServices::Out] Int128 % result) = IParsable<Int128>::TryParse;
public static bool TryParse(string? s, IFormatProvider? provider, out Int128 result);
static member TryParse : string * IFormatProvider * Int128 -> bool
Public Shared Function TryParse (s As String, provider As IFormatProvider, ByRef result As Int128) As Boolean

參數

s
String

要剖析的字串。

provider
IFormatProvider

一個提供關於 s的文化特定格式資訊的物件。

result
Int128

當此方法回傳時,包含成功解析 s 的結果,或失敗時為未定義的值。

傳回

true 若 s 成功解析;否則, false。

適用於