Click or drag to resize
ConvertToUInt64 Method (String, IFormatProvider)
Converts the specified string representation of a number to an equivalent 64-bit unsigned integer, using the specified culture-specific formatting information.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static ulong ToUInt64(
	string value,
	IFormatProvider provider
)

Parameters

value
Type: SystemString
A string that contains the number to convert.
provider
Type: SystemIFormatProvider
An object that supplies culture-specific formatting information.

Return Value

Type: UInt64
A 64-bit unsigned integer that is equivalent to the number in value, or 0 (zero) if value is null.
Exceptions
ExceptionCondition
FormatExceptionvalue does not consist of an optional sign followed by a sequence of digits (0 through 9).
OverflowExceptionvalue represents a number that is less than MinValue or greater than MaxValue.
See Also