This documentation is archived and is not being maintained.

UIntPtr.ToUInt64 Method

Converts the value of this instance to a 64-bit unsigned integer.

The UIntPtr type is not CLS-compliant. The CLS-compliant alternative type is IntPtr. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
Public Function ToUInt64() As UInt64
[C#]
public ulong ToUInt64();
[C++]
public: unsigned __int64 ToUInt64();
[JScript]
public function ToUInt64() : UInt64;

Return Value

A 64-bit unsigned integer equal to the value of this instance.

Requirements

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, Common Language Infrastructure (CLI) Standard

See Also

UIntPtr Structure | UIntPtr Members | System Namespace

Show: