DecimalConstantAttribute 建構函式

定義

初始化 DecimalConstantAttribute 類別的新執行個體。

多載

DecimalConstantAttribute(Byte, Byte, Int32, Int32, Int32)

使用指定的帶正負號的整數 (Signed Integer) 值,初始化 DecimalConstantAttribute 類別的新執行個體。

DecimalConstantAttribute(Byte, Byte, UInt32, UInt32, UInt32)

使用指定的不帶正負號的整數 (Unsigned Integer) 值,初始化 DecimalConstantAttribute 類別的新執行個體。

DecimalConstantAttribute(Byte, Byte, Int32, Int32, Int32)

來源:
DecimalConstantAttribute.cs
來源:
DecimalConstantAttribute.cs
來源:
DecimalConstantAttribute.cs

使用指定的帶正負號的整數 (Signed Integer) 值,初始化 DecimalConstantAttribute 類別的新執行個體。

public:
 DecimalConstantAttribute(System::Byte scale, System::Byte sign, int hi, int mid, int low);
public DecimalConstantAttribute (byte scale, byte sign, int hi, int mid, int low);
new System.Runtime.CompilerServices.DecimalConstantAttribute : byte * byte * int * int * int -> System.Runtime.CompilerServices.DecimalConstantAttribute
Public Sub New (scale As Byte, sign As Byte, hi As Integer, mid As Integer, low As Integer)

參數

scale
Byte

10 次方的縮放比例,表示小數點右方的數字數目。 有效值為 0 到 28 之間 (含)。

sign
Byte

0 的值表示正值,而 1 的值表示負值。

hi
Int32

96 位元 Value 的 32 個高位元。

mid
Int32

96 位元 Value 的中間 32 個位元。

low
Int32

96 位元 Value 的 32 個低位元。

適用於

DecimalConstantAttribute(Byte, Byte, UInt32, UInt32, UInt32)

來源:
DecimalConstantAttribute.cs
來源:
DecimalConstantAttribute.cs
來源:
DecimalConstantAttribute.cs

重要

此 API 不符合 CLS 規範。

使用指定的不帶正負號的整數 (Unsigned Integer) 值,初始化 DecimalConstantAttribute 類別的新執行個體。

public:
 DecimalConstantAttribute(System::Byte scale, System::Byte sign, System::UInt32 hi, System::UInt32 mid, System::UInt32 low);
[System.CLSCompliant(false)]
public DecimalConstantAttribute (byte scale, byte sign, uint hi, uint mid, uint low);
public DecimalConstantAttribute (byte scale, byte sign, uint hi, uint mid, uint low);
[<System.CLSCompliant(false)>]
new System.Runtime.CompilerServices.DecimalConstantAttribute : byte * byte * uint32 * uint32 * uint32 -> System.Runtime.CompilerServices.DecimalConstantAttribute
new System.Runtime.CompilerServices.DecimalConstantAttribute : byte * byte * uint32 * uint32 * uint32 -> System.Runtime.CompilerServices.DecimalConstantAttribute
Public Sub New (scale As Byte, sign As Byte, hi As UInteger, mid As UInteger, low As UInteger)

參數

scale
Byte

10 次方的縮放比例,表示小數點右方的數字數目。 有效值為 0 到 28 之間 (含)。

sign
Byte

0 的值表示正值,而 1 的值表示負值。

hi
UInt32

96 位元 Value 的 32 個高位元。

mid
UInt32

96 位元 Value 的中間 32 個位元。

low
UInt32

96 位元 Value 的 32 個低位元。

屬性

例外狀況

適用於