SqlDecimal Constructor (Byte, Byte, Boolean, Int32, Int32, Int32, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the SqlDecimal structure using the supplied parameters.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public SqlDecimal(
	byte bPrecision,
	byte bScale,
	bool fPositive,
	int data1,
	int data2,
	int data3,
	int data4
)

Parameters

bPrecision
Type: System.Byte

The maximum number of digits that can be used to represent the Value property of the new SqlDecimal structure.

bScale
Type: System.Byte

The number of decimal places to which the Value property will be resolved for the new SqlDecimal structure.

fPositive
Type: System.Boolean

A Boolean value that indicates whether the new SqlDecimal structure represents a positive or negative number.

data1
Type: System.Int32

An 32-bit unsigned integer which will be combined with data2, data3, and data4 to make up the 128-bit unsigned integer that represents the new SqlDecimal structures value.

data2
Type: System.Int32

An 32-bit unsigned integer which will be combined with data1, data3, and data4 to make up the 128-bit unsigned integer that represents the new SqlDecimal structures value.

data3
Type: System.Int32

An 32-bit unsigned integer which will be combined with data1, data2, and data4 to make up the 128-bit unsigned integer that represents the new SqlDecimal structures value.

data4
Type: System.Int32

An 32-bit unsigned integer which will be combined with data1, data2, and data3 to make up the 128-bit unsigned integer that represents the new SqlDecimal structures value.

.NET Framework
Available since 1.1
Return to top
Show: