Export (0) Print
Expand All

UInt32.MinValue Field

Represents the smallest possible value of UInt32. This field is constant.

This field is not CLS-compliant.  

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

public const uint MinValue
public static final UInt32 MinValue
public const var MinValue : uint
Not applicable.

The value of this constant is 0.

The following example demonstrates how to use the MinValue field to display the smallest possible value of a UInt32 variable.

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 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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

XNA Framework

Supported in: 1.0

Community Additions

ADD
Show:
© 2014 Microsoft