Rediger

Del via


UIntPtr.Parse Method

Definition

Overloads

Parse(String)

Converts the string representation of a number to its unsigned native integer equivalent.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Parses a span of UTF-8 characters into a value.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Parses a span of characters into a value.

Parse(String, NumberStyles)

Converts the string representation of a number in a specified style to its unsigned native integer equivalent.

Parse(String, IFormatProvider)

Converts the string representation of a number in a specified culture-specific format to its unsigned native integer equivalent.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Parses a span of UTF-8 characters into a value.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Converts the read-only span of characters representation of a number in optionally specified style and optionally specified culture-specific format to its unsigned native integer equivalent.

Parse(String, NumberStyles, IFormatProvider)

Converts the string representation of a number in a specified style and culture-specific format to its unsigned native integer equivalent.

Parse(String)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

Converts the string representation of a number to its unsigned native integer equivalent.

public:
 static UIntPtr Parse(System::String ^ s);
public static UIntPtr Parse (string s);
static member Parse : string -> unativeint
Public Shared Function Parse (s As String) As UIntPtr

Parameters

s
String

A string containing a number to convert.

Returns

UIntPtr

unativeint

An unsigned native integer equivalent to the number contained in s.

Exceptions

s is not in the correct format.

s represents a number less than MinValue or greater than MaxValue.

Applies to

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Source:
UIntPtr.cs
Source:
UIntPtr.cs

Parses a span of UTF-8 characters into a value.

public:
 static UIntPtr Parse(ReadOnlySpan<System::Byte> utf8Text, IFormatProvider ^ provider) = IUtf8SpanParsable<UIntPtr>::Parse;
public static UIntPtr Parse (ReadOnlySpan<byte> utf8Text, IFormatProvider? provider);
static member Parse : ReadOnlySpan<byte> * IFormatProvider -> unativeint
Public Shared Function Parse (utf8Text As ReadOnlySpan(Of Byte), provider As IFormatProvider) As UIntPtr

Parameters

utf8Text
ReadOnlySpan<Byte>

The span of UTF-8 characters to parse.

provider
IFormatProvider

An object that provides culture-specific formatting information about utf8Text.

Returns

UIntPtr

unativeint

The result of parsing utf8Text.

Implements

Applies to

Parse(ReadOnlySpan<Char>, IFormatProvider)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

Parses a span of characters into a value.

public:
 static UIntPtr Parse(ReadOnlySpan<char> s, IFormatProvider ^ provider) = ISpanParsable<UIntPtr>::Parse;
public static UIntPtr Parse (ReadOnlySpan<char> s, IFormatProvider? provider);
static member Parse : ReadOnlySpan<char> * IFormatProvider -> unativeint
Public Shared Function Parse (s As ReadOnlySpan(Of Char), provider As IFormatProvider) As UIntPtr

Parameters

s
ReadOnlySpan<Char>

The span of characters to parse.

provider
IFormatProvider

An object that provides culture-specific formatting information about s.

Returns

UIntPtr

unativeint

The result of parsing s.

Implements

Applies to

Parse(String, NumberStyles)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

Converts the string representation of a number in a specified style to its unsigned native integer equivalent.

public:
 static UIntPtr Parse(System::String ^ s, System::Globalization::NumberStyles style);
public static UIntPtr Parse (string s, System.Globalization.NumberStyles style);
static member Parse : string * System.Globalization.NumberStyles -> unativeint
Public Shared Function Parse (s As String, style As NumberStyles) As UIntPtr

Parameters

s
String

A string containing a number to convert.

style
NumberStyles

A bitwise combination of the enumeration values that indicates the style elements that can be present in s.

Returns

UIntPtr

unativeint

An unsigned native integer equivalent to the number contained in s.

Exceptions

style is not a NumberStyles value or style is not a combination of AllowHexSpecifier and HexNumber values.

s is not in the correct format.

s represents a number less than MinValue or greater than MaxValue.

Applies to

Parse(String, IFormatProvider)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

Converts the string representation of a number in a specified culture-specific format to its unsigned native integer equivalent.

public:
 static UIntPtr Parse(System::String ^ s, IFormatProvider ^ provider);
public:
 static UIntPtr Parse(System::String ^ s, IFormatProvider ^ provider) = IParsable<UIntPtr>::Parse;
public static UIntPtr Parse (string s, IFormatProvider? provider);
static member Parse : string * IFormatProvider -> unativeint
Public Shared Function Parse (s As String, provider As IFormatProvider) As UIntPtr

Parameters

s
String

A string containing a number to convert.

provider
IFormatProvider

An object that supplies culture-specific formatting information about s.

Returns

UIntPtr

unativeint

An unsigned native integer equivalent to the number contained in s.

Implements

Exceptions

s is not in the correct format.

s represents a number less than MinValue or greater than MaxValue.

Applies to

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Source:
UIntPtr.cs
Source:
UIntPtr.cs

Parses a span of UTF-8 characters into a value.

public static UIntPtr Parse (ReadOnlySpan<byte> utf8Text, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, IFormatProvider? provider = default);
static member Parse : ReadOnlySpan<byte> * System.Globalization.NumberStyles * IFormatProvider -> unativeint
Public Shared Function Parse (utf8Text As ReadOnlySpan(Of Byte), Optional style As NumberStyles = System.Globalization.NumberStyles.Integer, Optional provider As IFormatProvider = Nothing) As UIntPtr

Parameters

utf8Text
ReadOnlySpan<Byte>

The span of UTF-8 characters to parse.

style
NumberStyles

A bitwise combination of number styles that can be present in utf8Text.

provider
IFormatProvider

An object that provides culture-specific formatting information about utf8Text.

Returns

UIntPtr

unativeint

The result of parsing utf8Text.

Implements

Applies to

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

Converts the read-only span of characters representation of a number in optionally specified style and optionally specified culture-specific format to its unsigned native integer equivalent.

public static UIntPtr Parse (ReadOnlySpan<char> s, System.Globalization.NumberStyles style = System.Globalization.NumberStyles.Integer, IFormatProvider? provider = default);
static member Parse : ReadOnlySpan<char> * System.Globalization.NumberStyles * IFormatProvider -> unativeint
Public Shared Function Parse (s As ReadOnlySpan(Of Char), Optional style As NumberStyles = System.Globalization.NumberStyles.Integer, Optional provider As IFormatProvider = Nothing) As UIntPtr

Parameters

s
ReadOnlySpan<Char>

A read-only span of characters containing a number to convert.

style
NumberStyles

An optional bitwise combination of the enumeration values that indicates the style elements that can be present in s. The default value is Integer.

provider
IFormatProvider

An optional object that supplies culture-specific formatting information about s. The default value is default.

Returns

UIntPtr

unativeint

An unsigned native integer equivalent to the number contained in s.

Implements

Exceptions

style is not a NumberStyles value or style is not a combination of AllowHexSpecifier and HexNumber values.

s is not in the correct format.

s represents a number less than MinValue or greater than MaxValue.

Applies to

Parse(String, NumberStyles, IFormatProvider)

Source:
UIntPtr.cs
Source:
UIntPtr.cs
Source:
UIntPtr.cs

Converts the string representation of a number in a specified style and culture-specific format to its unsigned native integer equivalent.

public:
 static UIntPtr Parse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider);
public:
 static UIntPtr Parse(System::String ^ s, System::Globalization::NumberStyles style, IFormatProvider ^ provider) = System::Numerics::INumberBase<UIntPtr>::Parse;
public static UIntPtr Parse (string s, System.Globalization.NumberStyles style, IFormatProvider? provider);
static member Parse : string * System.Globalization.NumberStyles * IFormatProvider -> unativeint
Public Shared Function Parse (s As String, style As NumberStyles, provider As IFormatProvider) As UIntPtr

Parameters

s
String

A string containing a number to convert.

style
NumberStyles

A bitwise combination of the enumeration values that indicates the style elements that can be present in s.

provider
IFormatProvider

An object that supplies culture-specific formatting information about s.

Returns

UIntPtr

unativeint

An unsigned native integer equivalent to the number contained in s.

Implements

Exceptions

style is not a NumberStyles value or style is not a combination of AllowHexSpecifier and HexNumber values.

s is not in the correct format.

s represents a number less than MinValue or greater than MaxValue.

Applies to