UInt32.MaxValue 字段

表示 UInt32 的最大可能值。此字段为常数。

此字段不符合 CLS。 

**命名空间:**System
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
Public Const MaxValue As UInteger
用法
Dim value As UInteger

value = UInteger.MaxValue
public const uint MaxValue
public:
literal unsigned int MaxValue
public static final UInt32 MaxValue
public const var MaxValue : uint

备注

此常数的值为 4,294,967,295;即十六进制的 0xFFFFFFFF。

示例

public class Temperature {
    public static uint MinValue {
        get {
            return UInt32.MinValue;
        }
    }

    public static uint MaxValue {
        get {
            return UInt32.MaxValue;
        }
    }

    // The value holder
    protected uint m_value;

    public uint Value {
        get {
            return m_value;
        }
        set {
            m_value = value;
        }
    }
}
   public ref class Temperature
   {
   public:
      static property UInt32 MinValue 
      {
         UInt32 get()
         {
            return UInt32::MinValue;
         }
      }

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

   protected:
      // The value holder
      UInt32 m_value;

   public:
      property UInt32 Value 
      {
         UInt32 get()
         {
            return m_value;
         }
         void set( UInt32 value )
         {
            m_value = value;
         }
      }
   };
}
public class Temperature
{
    /** @property 
     */
    public static int get_MinValue()      
    {
        return System.Convert.ToInt32(UInt32.MinValue);
    } //get_MinValue

    /** @property 
     */
    public static int get_MaxValue()        
    {
        return System.Convert.ToInt32(UInt32.MaxValue);
    } //get_MaxValue

    // The value holder
    protected int mValue;
   
    /** @property 
     */
    public int get_Value()        
    {
        return mValue;
    } //get_Value

    /** @property 
     */
    public void set_Value(int value)        
    {
        mValue = value;
    } //set_Value
} //Temperature
public class Temperature {
    public static function get MinValue() : uint {
        return UInt32.MinValue;
    }

    public static function get MaxValue() : uint {
        return UInt32.MaxValue;
    }

    // The value holder
    protected var m_value : uint ;

    public function get Value() : uint {
        return m_value;
            }
            
            public function set Value(value : uint) {                        
        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

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

UInt32 结构
UInt32 成员
System 命名空间
MinValue