DecimalConstantAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 DecimalConstantAttribute 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| DecimalConstantAttribute(Byte, Byte, Int32, Int32, Int32) |
初始化一個新的類別實例 DecimalConstantAttribute ,使用指定的有符號整數值。 |
| DecimalConstantAttribute(Byte, Byte, UInt32, UInt32, UInt32) |
初始化一個新的類別實例 DecimalConstantAttribute ,使用指定的無符號整數值。 |
DecimalConstantAttribute(Byte, Byte, Int32, Int32, Int32)
初始化一個新的類別實例 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則表示負值。
適用於
DecimalConstantAttribute(Byte, Byte, UInt32, UInt32, UInt32)
重要
此 API 不符合 CLS 規範。
初始化一個新的類別實例 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則表示負值。
- 屬性
例外狀況
scale
> 28.