SqlMoney 构造函数

定义

初始化 SqlMoney 结构的新实例。Initializes a new instance of the SqlMoney structure.

重载

SqlMoney(Decimal)

使用指定的 Decimal 值初始化 SqlMoney 类的新实例。Initializes a new instance of the SqlMoney class with the specified Decimal value.

SqlMoney(Double)

使用指定的双精度型值初始化 SqlMoney 类的新实例。Initializes a new instance of the SqlMoney class with specified double value.

SqlMoney(Int32)

用指定的整数值初始化 SqlMoney 类的新实例。Initializes a new instance of the SqlMoney class with the specified integer value.

SqlMoney(Int64)

使用指定的长整型值初始化 SqlMoney 类的新实例。Initializes a new instance of the SqlMoney class with the specified long integer value.

SqlMoney(Decimal)

使用指定的 Decimal 值初始化 SqlMoney 类的新实例。Initializes a new instance of the SqlMoney class with the specified Decimal value.

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

参数

value
Decimal

要初始化的货币值。The monetary value to initialize.

另请参阅

SqlMoney(Double)

使用指定的双精度型值初始化 SqlMoney 类的新实例。Initializes a new instance of the SqlMoney class with specified double value.

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

参数

value
Double

要初始化的货币值。The monetary value to initialize.

另请参阅

SqlMoney(Int32)

用指定的整数值初始化 SqlMoney 类的新实例。Initializes a new instance of the SqlMoney class with the specified integer value.

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

参数

value
Int32

要初始化的货币值。The monetary value to initialize.

另请参阅

SqlMoney(Int64)

使用指定的长整型值初始化 SqlMoney 类的新实例。Initializes a new instance of the SqlMoney class with the specified long integer value.

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

参数

value
Int64

要初始化的货币值。The monetary value to initialize.

另请参阅

适用于