This documentation is archived and is not being maintained.

UInt32.Parse Method

Converts the string representation of a number to its 32-bit unsigned integer equivalent.

The UInt32 type is not CLS-compliant. The CLS-compliant alternative type is Int64. Int32 can be used when the original value is less than half of UInt32.MaxValue. For more information about CLS compliance, see What is the Common Language Specification.

Overload List

Converts the string representation of a number to its 32-bit unsigned integer equivalent. This method is not CLS-compliant.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Parse(String) As UInt32
[C#] public static uint Parse(string);
[C++] public: static unsigned int Parse(String*);
[JScript] public static function Parse(String) : UInt32;

Converts the string representation of a number in a specified culture-specific format to its 32-bit unsigned integer equivalent. This method is not CLS-compliant.

[Visual Basic] Overloads Public Shared Function Parse(String, IFormatProvider) As UInt32
[C#] public static uint Parse(string, IFormatProvider);
[C++] public: static unsigned int Parse(String*, IFormatProvider*);
[JScript] public static function Parse(String, IFormatProvider) : UInt32;

Converts the string representation of a number in a specified style to its 32-bit unsigned integer equivalent. This method is not CLS-compliant.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Parse(String, NumberStyles) As UInt32
[C#] public static uint Parse(string, NumberStyles);
[C++] public: static unsigned int Parse(String*, NumberStyles);
[JScript] public static function Parse(String, NumberStyles) : UInt32;

Converts the string representation of a number in a specified style and culture-specific format to its 32-bit unsigned integer equivalent. This method is not CLS-compliant.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public Shared Function Parse(String, NumberStyles, IFormatProvider) As UInt32
[C#] public static uint Parse(string, NumberStyles, IFormatProvider);
[C++] public: static unsigned int Parse(String*, NumberStyles, IFormatProvider*);
[JScript] public static function Parse(String, NumberStyles, IFormatProvider) : UInt32;

See Also

UInt32 Structure | UInt32 Members | System Namespace

Show: