Szerkesztés

Megosztás a következőn keresztül:


SqlDecimal Constructors

Definition

Initializes a new instance of the SqlDecimal structure.

Overloads

SqlDecimal(Decimal)

Initializes a new instance of the SqlDecimal structure using the supplied Decimal value.

SqlDecimal(Double)

Initializes a new instance of the SqlDecimal structure using the supplied double parameter.

SqlDecimal(Int32)

Initializes a new instance of the SqlDecimal structure using the supplied integer value.

SqlDecimal(Int64)

Initializes a new instance of the SqlDecimal structure using the supplied long integer value.

SqlDecimal(Byte, Byte, Boolean, Int32[])

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

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

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

SqlDecimal(Decimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Initializes a new instance of the SqlDecimal structure using the supplied Decimal value.

public:
 SqlDecimal(System::Decimal value);
public SqlDecimal (decimal value);
new System.Data.SqlTypes.SqlDecimal : decimal -> System.Data.SqlTypes.SqlDecimal
Public Sub New (value As Decimal)

Parameters

value
Decimal

The Decimal value to be stored as a SqlDecimal structure.

See also

Applies to

SqlDecimal(Double)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Initializes a new instance of the SqlDecimal structure using the supplied double parameter.

public:
 SqlDecimal(double dVal);
public SqlDecimal (double dVal);
new System.Data.SqlTypes.SqlDecimal : double -> System.Data.SqlTypes.SqlDecimal
Public Sub New (dVal As Double)

Parameters

dVal
Double

A double, representing the value for the new SqlDecimal structure.

See also

Applies to

SqlDecimal(Int32)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Initializes a new instance of the SqlDecimal structure using the supplied integer value.

public:
 SqlDecimal(int value);
public SqlDecimal (int value);
new System.Data.SqlTypes.SqlDecimal : int -> System.Data.SqlTypes.SqlDecimal
Public Sub New (value As Integer)

Parameters

value
Int32

The supplied integer value which will the used as the value of the new SqlDecimal structure.

See also

Applies to

SqlDecimal(Int64)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Initializes a new instance of the SqlDecimal structure using the supplied long integer value.

public:
 SqlDecimal(long value);
public SqlDecimal (long value);
new System.Data.SqlTypes.SqlDecimal : int64 -> System.Data.SqlTypes.SqlDecimal
Public Sub New (value As Long)

Parameters

value
Int64

The supplied long integer value which will the used as the value of the new SqlDecimal structure.

See also

Applies to

SqlDecimal(Byte, Byte, Boolean, Int32[])

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

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

public:
 SqlDecimal(System::Byte bPrecision, System::Byte bScale, bool fPositive, cli::array <int> ^ bits);
public SqlDecimal (byte bPrecision, byte bScale, bool fPositive, int[] bits);
new System.Data.SqlTypes.SqlDecimal : byte * byte * bool * int[] -> System.Data.SqlTypes.SqlDecimal
Public Sub New (bPrecision As Byte, bScale As Byte, fPositive As Boolean, bits As Integer())

Parameters

bPrecision
Byte

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

bScale
Byte

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

fPositive
Boolean

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

bits
Int32[]

The 128-bit unsigned integer that provides the value of the new SqlDecimal.

See also

Applies to

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

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

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

public:
 SqlDecimal(System::Byte bPrecision, System::Byte bScale, bool fPositive, int data1, int data2, int data3, int data4);
public SqlDecimal (byte bPrecision, byte bScale, bool fPositive, int data1, int data2, int data3, int data4);
new System.Data.SqlTypes.SqlDecimal : byte * byte * bool * int * int * int * int -> System.Data.SqlTypes.SqlDecimal
Public Sub New (bPrecision As Byte, bScale As Byte, fPositive As Boolean, data1 As Integer, data2 As Integer, data3 As Integer, data4 As Integer)

Parameters

bPrecision
Byte

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

bScale
Byte

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

fPositive
Boolean

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

data1
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
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
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
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.

See also

Applies to