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
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(含 0)。

sign
Byte

值为 0 表示正值,值为 1 表示负值。

hi
Int32

96 位的高 32 位 Value

mid
Int32

96 位的中间 32 位 Value

low
Int32

96 位的低 32 位 Value

适用于

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

Source:
DecimalConstantAttribute.cs
Source:
DecimalConstantAttribute.cs
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(含 0)。

sign
Byte

值为 0 表示正值,值为 1 表示负值。

hi
UInt32

96 位的高 32 位 Value

mid
UInt32

96 位的中间 32 位 Value

low
UInt32

96 位的低 32 位 Value

属性

例外

适用于