UIntPtr.Parse Método

Definição

Sobrecargas

Parse(String)

Converte a representação da cadeia de caracteres de um número para seu inteiro nativo sem sinal equivalente.Converts the string representation of a number to its unsigned native integer equivalent.

Parse(String, NumberStyles)

Converte a representação de cadeia de caracteres de um número em um estilo especificado para seu inteiro nativo sem sinal equivalente.Converts the string representation of a number in a specified style to its unsigned native integer equivalent.

Parse(String, IFormatProvider)

Converte a representação de cadeia de caracteres de um número em um formato específico à cultura especificado no seu inteiro nativo sem sinal equivalente.Converts the string representation of a number in a specified culture-specific format to its unsigned native integer equivalent.

Parse(String, NumberStyles, IFormatProvider)

Converte a representação de cadeia de caracteres de um número em um formato específico à cultura e ao estilo especificado no seu inteiro nativo sem sinal equivalente.Converts the string representation of a number in a specified style and culture-specific format to its unsigned native integer equivalent.

Parse(String)

Converte a representação da cadeia de caracteres de um número para seu inteiro nativo sem sinal equivalente.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

Parâmetros

s
String

Uma cadeia de caracteres que contém um número a ser convertido.A string containing a number to convert.

Retornos

UIntPtr

Um inteiro nativo sem sinal equivalente ao número contido em s.An unsigned native integer equivalent to the number contained in s.

Exceções

s é null.s is null.

s não está no formato correto.s is not in the correct format.

s representa um número menor que MinValue ou maior que MaxValue.s represents a number less than MinValue or greater than MaxValue.

Aplica-se a

Parse(String, NumberStyles)

Converte a representação de cadeia de caracteres de um número em um estilo especificado para seu inteiro nativo sem sinal equivalente.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

Parâmetros

s
String

Uma cadeia de caracteres que contém um número a ser convertido.A string containing a number to convert.

style
NumberStyles

Um combinação bit a bit dos valores de enumeração que indica os elementos de estilo que podem estar presentes em s.A bitwise combination of the enumeration values that indicates the style elements that can be present in s.

Retornos

UIntPtr

Um inteiro nativo sem sinal equivalente ao número contido em s.An unsigned native integer equivalent to the number contained in s.

Exceções

s é null.s is null.

style não é um valor NumberStyles ou style não é uma combinação de valores AllowHexSpecifier e HexNumber.style is not a NumberStyles value or style is not a combination of AllowHexSpecifier and HexNumber values.

s não está no formato correto.s is not in the correct format.

s representa um número menor que MinValue ou maior que MaxValue.s represents a number less than MinValue or greater than MaxValue.

Aplica-se a

Parse(String, IFormatProvider)

Converte a representação de cadeia de caracteres de um número em um formato específico à cultura especificado no seu inteiro nativo sem sinal equivalente.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 (string s, IFormatProvider? provider);
static member Parse : string * IFormatProvider -> unativeint
Public Shared Function Parse (s As String, provider As IFormatProvider) As UIntPtr

Parâmetros

s
String

Uma cadeia de caracteres que contém um número a ser convertido.A string containing a number to convert.

provider
IFormatProvider

Um objeto que fornece informações de formatação específicas da cultura sobre s.An object that supplies culture-specific formatting information about s.

Retornos

UIntPtr

Um inteiro nativo sem sinal equivalente ao número contido em s.An unsigned native integer equivalent to the number contained in s.

Exceções

s é null.s is null.

s não está no formato correto.s is not in the correct format.

s representa um número menor que MinValue ou maior que MaxValue.s represents a number less than MinValue or greater than MaxValue.

Aplica-se a

Parse(String, NumberStyles, IFormatProvider)

Converte a representação de cadeia de caracteres de um número em um formato específico à cultura e ao estilo especificado no seu inteiro nativo sem sinal equivalente.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 (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

Parâmetros

s
String

Uma cadeia de caracteres que contém um número a ser convertido.A string containing a number to convert.

style
NumberStyles

Um combinação bit a bit dos valores de enumeração que indica os elementos de estilo que podem estar presentes em s.A bitwise combination of the enumeration values that indicates the style elements that can be present in s.

provider
IFormatProvider

Um objeto que fornece informações de formatação específicas da cultura sobre s.An object that supplies culture-specific formatting information about s.

Retornos

UIntPtr

Um inteiro nativo sem sinal equivalente ao número contido em s.An unsigned native integer equivalent to the number contained in s.

Exceções

s é null.s is null.

style não é um valor NumberStyles ou style não é uma combinação de valores AllowHexSpecifier e HexNumber.style is not a NumberStyles value or style is not a combination of AllowHexSpecifier and HexNumber values.

s não está no formato correto.s is not in the correct format.

s representa um número menor que MinValue ou maior que MaxValue.s represents a number less than MinValue or greater than MaxValue.

Aplica-se a