This documentation is archived and is not being maintained.

Convert.ToUInt64 Method (Object)

.NET Framework 1.1

Converts the value of the specified Object to a 64-bit unsigned integer.

This method is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
Overloads Public Shared Function ToUInt64( _
   ByVal value As Object _
) As UInt64
public static ulong ToUInt64(
 object value
public: static unsigned __int64 ToUInt64(
 Object* value
static function ToUInt64(
 value : Object
) : UInt64;


An Object that implements the IConvertible interface or a null reference (Nothing in Visual Basic).

Return Value

A 64-bit unsigned integer equivalent to the value of value, or zero if value is a null reference (Nothing in Visual Basic).


Exception Type Condition
InvalidCastException value does not implement IConvertible.


The return value is the result of invoking the IConvertible.ToUInt64 method of the underlying type of value.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

Convert Class | Convert Members | System Namespace | Convert.ToUInt64 Overload List