Прочетете на английски Редактиране

Споделяне чрез


DecimalConstantAttribute Constructors

Definition

Initializes a new instance of the DecimalConstantAttribute class.

Overloads

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

Initializes a new instance of the DecimalConstantAttribute class with the specified signed integer values.

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

Initializes a new instance of the DecimalConstantAttribute class with the specified unsigned integer values.

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

Source:
DecimalConstantAttribute.cs
Source:
DecimalConstantAttribute.cs
Source:
DecimalConstantAttribute.cs

Initializes a new instance of the DecimalConstantAttribute class with the specified signed integer values.

C#
public DecimalConstantAttribute(byte scale, byte sign, int hi, int mid, int low);

Parameters

scale
Byte

The power of 10 scaling factor that indicates the number of digits to the right of the decimal point. Valid values are 0 through 28 inclusive.

sign
Byte

A value of 0 indicates a positive value, and a value of 1 indicates a negative value.

hi
Int32

The high 32 bits of the 96-bit Value.

mid
Int32

The middle 32 bits of the 96-bit Value.

low
Int32

The low 32 bits of the 96-bit Value.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0

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

Source:
DecimalConstantAttribute.cs
Source:
DecimalConstantAttribute.cs
Source:
DecimalConstantAttribute.cs

Important

This API is not CLS-compliant.

Initializes a new instance of the DecimalConstantAttribute class with the specified unsigned integer values.

C#
[System.CLSCompliant(false)]
public DecimalConstantAttribute(byte scale, byte sign, uint hi, uint mid, uint low);
C#
public DecimalConstantAttribute(byte scale, byte sign, uint hi, uint mid, uint low);

Parameters

scale
Byte

The power of 10 scaling factor that indicates the number of digits to the right of the decimal point. Valid values are 0 through 28 inclusive.

sign
Byte

A value of 0 indicates a positive value, and a value of 1 indicates a negative value.

hi
UInt32

The high 32 bits of the 96-bit Value.

mid
UInt32

The middle 32 bits of the 96-bit Value.

low
UInt32

The low 32 bits of the 96-bit Value.

Attributes

Exceptions

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0