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 或失败时未定义的值的结果。

返回

如果已成功分析 s,则 true;否则,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 或失败时未定义的值的结果。

返回

如果已成功分析 s,则 true;否则,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 或失败时未定义值的结果。

返回

如果已成功分析 utf8Text,则 true;否则,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 或失败时未定义的值的结果。

返回

如果已成功分析 s,则 true;否则,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 或失败时未定义的值的结果。

返回

如果已成功分析 s,则 true;否则,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 或失败时未定义值的结果。

返回

如果已成功分析 utf8Text,则 true;否则,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 或失败时未定义的值的结果。

返回

如果已成功分析 s,则 true;否则,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 位无符号整数值;如果转换失败,则包含零。 此参数未初始化传递;将覆盖最初在结果中提供的任何值。

返回

如果已成功转换 utf8Text,则 true;否则,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 或失败时未定义的值的结果。

返回

如果已成功分析 s,则 true;否则,false

适用于