UInt32.MinValue Field

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

Syntax

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

UInt32 Structure

System Namespace

MaxValue