DecimalConstantAttribute 建構函式

定義

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

多載

名稱 Description
DecimalConstantAttribute(Byte, Byte, Int32, Int32, Int32)

初始化一個新的類別實例 DecimalConstantAttribute ,使用指定的有符號整數值。

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

初始化一個新的類別實例 DecimalConstantAttribute ,使用指定的無符號整數值。

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

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

初始化一個新的類別實例 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
來源:
DecimalConstantAttribute.cs
來源:
DecimalConstantAttribute.cs

重要

此 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則表示負值。

hi
UInt32

96位元 Value的最高32位元。

mid
UInt32

96位元 Value的中間32位元。

low
UInt32

96位 Value元的低32位元。

屬性

例外狀況

適用於