Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Show:
© 2015 Microsoft