SqlMoney.Explicit SqlMoney.Explicit SqlMoney.Explicit SqlMoney.Explicit Operator

定义

重载

Explicit(SqlBoolean to SqlMoney) Explicit(SqlBoolean to SqlMoney) Explicit(SqlBoolean to SqlMoney) Explicit(SqlBoolean to SqlMoney)

此隐式运算符可将所提供的 SqlBoolean 参数转换为 SqlMoneyThis implicit operator converts the supplied SqlBoolean parameter to SqlMoney.

Explicit(SqlDecimal to SqlMoney) Explicit(SqlDecimal to SqlMoney) Explicit(SqlDecimal to SqlMoney) Explicit(SqlDecimal to SqlMoney)

此运算符将提供的 SqlDecimal 参数转换为 SqlMoneyThis operator converts the supplied SqlDecimal parameter to SqlMoney.

Explicit(SqlDouble to SqlMoney) Explicit(SqlDouble to SqlMoney) Explicit(SqlDouble to SqlMoney) Explicit(SqlDouble to SqlMoney)

此运算符将提供的 SqlDouble 参数转换为 SqlMoneyThis operator converts the supplied SqlDouble parameter to SqlMoney.

Explicit(SqlMoney to Decimal) Explicit(SqlMoney to Decimal) Explicit(SqlMoney to Decimal) Explicit(SqlMoney to Decimal)

将指定的 SqlMoney 结构转换为 DecimalConverts the specified SqlMoney structure to Decimal.

Explicit(SqlSingle to SqlMoney) Explicit(SqlSingle to SqlMoney) Explicit(SqlSingle to SqlMoney) Explicit(SqlSingle to SqlMoney)

此运算符将提供的 SqlSingle 参数转换为 SqlMoneyThis operator converts the supplied SqlSingle parameter to SqlMoney.

Explicit(SqlString to SqlMoney) Explicit(SqlString to SqlMoney) Explicit(SqlString to SqlMoney) Explicit(SqlString to SqlMoney)

此运算符将 SqlString 参数转换为 SqlMoneyThis operator converts the SqlString parameter to SqlMoney.

Explicit(Double to SqlMoney) Explicit(Double to SqlMoney) Explicit(Double to SqlMoney) Explicit(Double to SqlMoney)

此隐式运算符可将所提供的 SqlDouble 参数转换为 SqlMoneyThis implicit operator converts the supplied SqlDouble parameter to SqlMoney.

Explicit(SqlBoolean to SqlMoney) Explicit(SqlBoolean to SqlMoney) Explicit(SqlBoolean to SqlMoney) Explicit(SqlBoolean to SqlMoney)

此隐式运算符可将所提供的 SqlBoolean 参数转换为 SqlMoneyThis implicit operator converts the supplied SqlBoolean parameter to SqlMoney.

public:
 static explicit operator System::Data::SqlTypes::SqlMoney(System::Data::SqlTypes::SqlBoolean x);
public static explicit operator System.Data.SqlTypes.SqlMoney (System.Data.SqlTypes.SqlBoolean x);
static member op_Explicit : System.Data.SqlTypes.SqlBoolean -> System.Data.SqlTypes.SqlMoney
Public Shared Narrowing Operator CType (x As SqlBoolean) As SqlMoney

参数

x
SqlBoolean SqlBoolean SqlBoolean SqlBoolean

要转换的 SqlBoolean 结构。The SqlBoolean structure to be converted.

返回

一个新的 SqlMoney 结构,它的 Value 属性等于 ByteValue 参数的 SqlBoolean 属性。A new SqlMoney structure whose Value property equals the ByteValue property of the SqlBoolean parameter.

注解

此运算符的等效方法是 SqlBoolean.ToSqlMoney()The equivalent method for this operator is SqlBoolean.ToSqlMoney()

另请参阅

Explicit(SqlDecimal to SqlMoney) Explicit(SqlDecimal to SqlMoney) Explicit(SqlDecimal to SqlMoney) Explicit(SqlDecimal to SqlMoney)

此运算符将提供的 SqlDecimal 参数转换为 SqlMoneyThis operator converts the supplied SqlDecimal parameter to SqlMoney.

public:
 static explicit operator System::Data::SqlTypes::SqlMoney(System::Data::SqlTypes::SqlDecimal x);
public static explicit operator System.Data.SqlTypes.SqlMoney (System.Data.SqlTypes.SqlDecimal x);
static member op_Explicit : System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlMoney
Public Shared Narrowing Operator CType (x As SqlDecimal) As SqlMoney

参数

x
SqlDecimal SqlDecimal SqlDecimal SqlDecimal

要转换的 SqlDecimal 结构。The SqlDecimal structure to be converted.

返回

一个新的 SqlMoney 结构,它的 Value 属性等于 Value 参数的 SqlDecimalA new SqlMoney structure whose Value property equals the Value of the SqlDecimal parameter.

注解

此运算符的等效方法是 SqlDecimal.ToSqlMoney()The equivalent method for this operator is SqlDecimal.ToSqlMoney()

另请参阅

Explicit(SqlDouble to SqlMoney) Explicit(SqlDouble to SqlMoney) Explicit(SqlDouble to SqlMoney) Explicit(SqlDouble to SqlMoney)

此运算符将提供的 SqlDouble 参数转换为 SqlMoneyThis operator converts the supplied SqlDouble parameter to SqlMoney.

public:
 static explicit operator System::Data::SqlTypes::SqlMoney(System::Data::SqlTypes::SqlDouble x);
public static explicit operator System.Data.SqlTypes.SqlMoney (System.Data.SqlTypes.SqlDouble x);
static member op_Explicit : System.Data.SqlTypes.SqlDouble -> System.Data.SqlTypes.SqlMoney
Public Shared Narrowing Operator CType (x As SqlDouble) As SqlMoney

参数

x
SqlDouble SqlDouble SqlDouble SqlDouble

要转换的 SqlDouble 结构。The SqlDouble structure to be converted.

返回

一个新的 SqlMoney 结构,它的 Value 属性等于 Value 参数的 SqlDoubleA new SqlMoney structure whose Value property equals the Value of the SqlDouble parameter.

注解

此运算符的等效方法是 SqlDouble.ToSqlMoney()The equivalent method for this operator is SqlDouble.ToSqlMoney()

另请参阅

Explicit(SqlMoney to Decimal) Explicit(SqlMoney to Decimal) Explicit(SqlMoney to Decimal) Explicit(SqlMoney to Decimal)

将指定的 SqlMoney 结构转换为 DecimalConverts the specified SqlMoney structure to Decimal.

public:
 static explicit operator System::Decimal(System::Data::SqlTypes::SqlMoney x);
public static explicit operator decimal (System.Data.SqlTypes.SqlMoney x);
static member op_Explicit : System.Data.SqlTypes.SqlMoney -> decimal
Public Shared Narrowing Operator CType (x As SqlMoney) As Decimal

参数

x
SqlMoney SqlMoney SqlMoney SqlMoney

一个 SqlMoney 结构。A SqlMoney structure.

返回

一个新 Decimal 结构,它的值等于 Value 参数的 SqlMoneyA new Decimal structure whose value equals the Value of the SqlMoney parameter.

注解

此运算符的等效方法是 SqlMoney.ToDecimal()The equivalent method for this operator is SqlMoney.ToDecimal()

另请参阅

Explicit(SqlSingle to SqlMoney) Explicit(SqlSingle to SqlMoney) Explicit(SqlSingle to SqlMoney) Explicit(SqlSingle to SqlMoney)

此运算符将提供的 SqlSingle 参数转换为 SqlMoneyThis operator converts the supplied SqlSingle parameter to SqlMoney.

public:
 static explicit operator System::Data::SqlTypes::SqlMoney(System::Data::SqlTypes::SqlSingle x);
public static explicit operator System.Data.SqlTypes.SqlMoney (System.Data.SqlTypes.SqlSingle x);
static member op_Explicit : System.Data.SqlTypes.SqlSingle -> System.Data.SqlTypes.SqlMoney
Public Shared Narrowing Operator CType (x As SqlSingle) As SqlMoney

参数

x
SqlSingle SqlSingle SqlSingle SqlSingle

要转换的 SqlSingle 结构。The SqlSingle structure to be converted.

返回

一个新的 SqlMoney 结构,它的 Value 属性等于 Value 参数的 SqlSingleA new SqlMoney structure whose Value property equals the Value of the SqlSingle parameter.

注解

此运算符的等效方法是 SqlSingle.ToSqlMoney()The equivalent method for this operator is SqlSingle.ToSqlMoney()

另请参阅

Explicit(SqlString to SqlMoney) Explicit(SqlString to SqlMoney) Explicit(SqlString to SqlMoney) Explicit(SqlString to SqlMoney)

此运算符将 SqlString 参数转换为 SqlMoneyThis operator converts the SqlString parameter to SqlMoney.

public:
 static explicit operator System::Data::SqlTypes::SqlMoney(System::Data::SqlTypes::SqlString x);
public static explicit operator System.Data.SqlTypes.SqlMoney (System.Data.SqlTypes.SqlString x);
static member op_Explicit : System.Data.SqlTypes.SqlString -> System.Data.SqlTypes.SqlMoney
Public Shared Narrowing Operator CType (x As SqlString) As SqlMoney

参数

x
SqlString SqlString SqlString SqlString

要转换的 SqlString 对象。The SqlString object to be converted.

返回

一个新的 SqlMoney 结构,它的 Value 属性等于 SqlString 参数表示的值。A new SqlMoney structure whose Value property equals the value represented by the SqlString parameter.

注解

此运算符的等效方法是 SqlString.ToSqlMoney()The equivalent method for this operator is SqlString.ToSqlMoney()

另请参阅

Explicit(Double to SqlMoney) Explicit(Double to SqlMoney) Explicit(Double to SqlMoney) Explicit(Double to SqlMoney)

此隐式运算符可将所提供的 SqlDouble 参数转换为 SqlMoneyThis implicit operator converts the supplied SqlDouble parameter to SqlMoney.

public:
 static explicit operator System::Data::SqlTypes::SqlMoney(double x);
public static explicit operator System.Data.SqlTypes.SqlMoney (double x);
static member op_Explicit : double -> System.Data.SqlTypes.SqlMoney
Public Shared Narrowing Operator CType (x As Double) As SqlMoney

参数

x
Double Double Double Double

要转换的 SqlDouble 结构。The SqlDouble structure to be converted.

返回

一个新的 SqlMoney 结构,它的 Value 属性等于 ByteValue 参数的 SqlDouble 属性。A new SqlMoney structure whose Value property equals the ByteValue property of the SqlDouble parameter.

注解

此运算符的等效方法是 SqlDouble.ToSqlMoney()The equivalent method for this operator is SqlDouble.ToSqlMoney()

另请参阅

适用于