UInt128.TryParse 方法

定义

重载

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)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
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)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
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)

Source:
UInt128.cs
Source:
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)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
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)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
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)

Source:
UInt128.cs
Source:
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)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
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)

Source:
UInt128.cs
Source:
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 位无符号整数值;如果转换失败,则包含零。 此参数未经初始化即进行传递;最初在 result 中提供的任何值都会被覆盖。

返回

如果 true 成功转换,则为 utf8Text;否则为 false

适用于

TryParse(String, NumberStyles, IFormatProvider, UInt128)

Source:
UInt128.cs
Source:
UInt128.cs
Source:
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

适用于