Share via


DecimalConstantAttribute 构造函数

定义

初始化 DecimalConstantAttribute 类的新实例。

重载

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

使用指定的有符号整数值初始化 DecimalConstantAttribute 类的新实例。

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

使用指定的无符号整数值初始化 DecimalConstantAttribute 类的新实例。

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

Source:
DecimalConstantAttribute.cs
Source:
DecimalConstantAttribute.cs
Source:
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)

Source:
DecimalConstantAttribute.cs
Source:
DecimalConstantAttribute.cs
Source:
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 位。

属性

例外

适用于