Mono Class Library: System.Convert Overview | Members

System.Convert.ToUInt64 Method

Converts a string to a ulong .

[System.CLSCompliant(false)]
public static ulong ToUInt64 (string value)

Parameters

value
The string to be converted. The string is in the System.Globalization.NumberStyles.Integer style.

Returns

value as a 64-bit unsigned integer.

Exceptions

TypeReason
ArgumentNullExceptionvalue is null reference.
FormatExceptionvalue cannot be converted to a numeric value.
OverflowExceptionThe numeric value of value is greater than ulong.MaxValue or less than ulong.MinValue.

Remarks

This method parses value using the information in a System.Globalization.NumberFormatInfo instance initialized for the current system culture.

This member is not CLS-compliant. For a CLS-compliant alternative, use Convert.ToDecimal(object)(string).

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0