Click or drag to resize
ConvertToUInt64 Method (Object, IFormatProvider)
Converts the value of the specified object to a 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(
	Object value,
	IFormatProvider provider
)

Parameters

value
Type: SystemObject
An object that implements the IConvertible interface.
provider
Type: SystemIFormatProvider
An object that supplies culture-specific formatting information.

Return Value

Type: UInt64
A 64-bit unsigned integer that is equivalent to value, or zero if value is null.
Exceptions
ExceptionCondition
FormatExceptionvalue is not in an appropriate format.
InvalidCastExceptionvalue does not implement the IConvertible interface. -or-The conversion is not supported.
OverflowExceptionvalue represents a number that is less than MinValue or greater than MaxValue.
See Also