Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

UInt32.MinValue Field

Definition

Namespace:
System
Assemblies:
mscorlib.dll, System.Runtime.dll
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Runtime.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
UInt32.cs
Source:
UInt32.cs
Source:
UInt32.cs
Source:
UInt32.cs
Source:
UInt32.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public: System::UInt32 MinValue = 0;
public const uint MinValue = 0;
val mutable MinValue : uint32
Public Const MinValue As UInteger = 0

Field Value

Value = 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 {
 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;
 }
 }
}
type Temperature() =
 // The value holder
 let mutable m_value = 0u

 static member MinValue =
 UInt32.MinValue

 static member MaxValue =
 UInt32.MaxValue

 member _.Value
 with get () =
 m_value
 and set (v) =
 m_value <- v
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 
 Me.m_value = value
 End Set
 End Property
End Class

Remarks

The value of this constant is 0.

Applies to

See also


Feedback

Was this page helpful?