UInt32.MinValue 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表 UInt32 最小的可能值。 這個欄位為常數。
public: System::UInt32 MinValue = 0;
public const uint MinValue = 0;
val mutable MinValue : uint32
Public Const MinValue As UInteger = 0
欄位值
Value = 0範例
下列範例示範如何使用 MinValue 欄位來顯示變數的最小可能值 UInt32 。
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 {
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
備註
這個常數的值是 0。