This documentation is archived and is not being maintained.

UInt64.MaxValue Field

Represents the largest possible value of UInt64. This field is constant.

The UInt64 type is not CLS-compliant. The CLS-compliant alternative type is Decimal. Int64 can be used when the original value is less than half of UInt64.MaxValue. For more information about CLS compliance, see What is the Common Language Specification.

public const ulong MaxValue;
public: const unsigned __int64 MaxValue;
public var MaxValue : UInt64;

[Visual Basic] Visual Basic does not support constant fields of type UInt64.

Remarks [C#, C++, JScript]

The value of this constant is 18,446,744,073,709,551,615; that is, hexadecimal 0xFFFFFFFFFFFFFFFF.


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

UInt64 Structure | UInt64 Members | System Namespace | MinValue