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
)
public SqlDecimal (
	byte bPrecision, 
	byte bScale, 
	boolean fPositive, 
	int data1, 
	int data2, 
	int data3, 
	int data4
)
public function SqlDecimal (
	bPrecision : byte, 
	bScale : byte, 
	fPositive : boolean, 
	data1 : int, 
	data2 : int, 
	data3 : int, 
	data4 : int
)

Parameters

bPrecision

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

bScale

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

fPositive

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

data1

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

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

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

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.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft