This documentation is archived and is not being maintained.

UInt64.MaxValue Field

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

This field is not CLS-compliant.  

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

public:
literal usigned long long MaxValue
public static final UInt64 MaxValue
public const var MaxValue : ulong

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

   public ref class Temperature
   {
   public:
      static property Int64 MinValue 
      {
         Int64 get()
         {
            return UInt64::MinValue;
         }
      }

      static property UInt64 MaxValue 
      {
         UInt64 get()
         {
            return UInt64::MaxValue;
         }
      }

   protected:
      // The value holder
      UInt64 m_value;

   public:
      property UInt64 Value 
      {
         UInt64 get()
         {
            return m_value;
         }
         void set( UInt64 value )
         {
            m_value = value;
         }
      }
   };
}

public class Temperature
{
    /** @property 
     */
    public static long get_MinValue()
    {
        return System.Convert.ToInt64(UInt64.MinValue);
    } //get_MinValue

    /** @property 
     */
    public static long get_MaxValue()
    {
        return System.Convert.ToInt64(UInt64.MaxValue);
    } //get_MaxValue

    // The value holder
    protected long mValue;

    /** @property 
     */
    public long get_Value()
    {
        return mValue;
    } //get_Value

    /** @property 
     */
    public void set_Value(long value)
    {
        mValue = value;
    } //set_Value
} //Temperature

public class Temperature {
    public static function get MinValue() : ulong {
        return UInt64.MinValue;
    }

    public static function get MaxValue() : ulong {
        return UInt64.MaxValue;
    }

    // The value holder
    protected var m_value : ulong ;

    public function get Value() : ulong {
        return m_value;
            }
            
            public function set Value(value : ulong) {                        
        m_value = value;
    }

}

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0
Show: