This documentation is archived and is not being maintained.

UInt64.Parse Method

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

The UInt64 type is not CLS-compliant. The CLS-compliant alternative type is Decimal. Int64 can be used when the original value is less than half of UInt64.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 64-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 UInt64
[C#] public static ulong Parse(string);
[C++] public: static unsigned __int64 Parse(String*);
[JScript] public static function Parse(String) : UInt64;

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

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

Converts the string representation of a number in a specified style to its 64-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 UInt64
[C#] public static ulong Parse(string, NumberStyles);
[C++] public: static unsigned __int64 Parse(String*, NumberStyles);
[JScript] public static function Parse(String, NumberStyles) : UInt64;

Converts the string representation of a number in a specified style and culture-specific format to its 64-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 UInt64
[C#] public static ulong Parse(string, NumberStyles, IFormatProvider);
[C++] public: static unsigned __int64 Parse(String*, NumberStyles, IFormatProvider*);
[JScript] public static function Parse(String, NumberStyles, IFormatProvider) : UInt64;

See Also

UInt64 Structure | UInt64 Members | System Namespace

Show: