Compartir a través de


UInt32.MinValue Field

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Const MinValue As UInteger
public const uint MinValue

Remarks

The value of this constant is 0.

Examples

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

Public Class Temperature
   ' The value holder
   Protected m_value As UInteger

   Public Shared ReadOnly Property MinValue() As UInteger
      Get
         Return UInt32.MinValue
      End Get
   End Property

   Public Shared ReadOnly Property MaxValue() As UInteger
      Get
         Return UInt32.MaxValue
      End Get
   End Property

   Public Property Value() As UInteger
      Get
         Return Me.m_value
      End Get
      Set(ByVal value As UInteger)
         Me.m_value = Value
      End Set
   End Property
End Class
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;
      }
   }
}

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.