SqlMoney.Explicit 操作员

定义

转换到 /从中 SqlMoney转换 。

重载

名称 说明
Explicit(SqlBoolean to SqlMoney)

此隐式运算符将所提供的 SqlBoolean 参数转换为 SqlMoney.

Explicit(SqlDecimal to SqlMoney)

此运算符将提供的 SqlDecimal 参数转换为 SqlMoney

Explicit(SqlDouble to SqlMoney)

此运算符将提供的 SqlDouble 参数转换为 SqlMoney

Explicit(SqlMoney to Decimal)

将指定的 SqlMoney 结构转换为 Decimal

Explicit(SqlSingle to SqlMoney)

此运算符将提供的 SqlSingle 参数转换为 SqlMoney

Explicit(SqlString to SqlMoney)

此运算符将 SqlString 参数转换为 SqlMoney.

Explicit(Double to SqlMoney)

此隐式运算符将所提供的 SqlDouble 参数转换为 SqlMoney.

Explicit(SqlBoolean to SqlMoney)

此隐式运算符将所提供的 SqlBoolean 参数转换为 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要转换的结构。

返回

一个新 SqlMoney 结构,其 Value 属性等于 ByteValue 参数的属性 SqlBoolean

注解

此运算符的等效方法为 SqlBoolean.ToSqlMoney()

另请参阅

适用于

Explicit(SqlDecimal to SqlMoney)

此运算符将提供的 SqlDecimal 参数转换为 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要转换的结构。

返回

一个新SqlMoney结构,其Value属性等于ValueSqlDecimal参数。

注解

此运算符的等效方法为 SqlDecimal.ToSqlMoney()

另请参阅

适用于

Explicit(SqlDouble to SqlMoney)

此运算符将提供的 SqlDouble 参数转换为 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要转换的结构。

返回

一个新SqlMoney结构,其Value属性等于ValueSqlDouble参数。

注解

此运算符的等效方法为 SqlDouble.ToSqlMoney()

另请参阅

适用于

Explicit(SqlMoney to Decimal)

将指定的 SqlMoney 结构转换为 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 结构。

返回

一个新Decimal结构,其值等于ValueSqlMoney参数。

注解

此运算符的等效方法为 SqlMoney.ToDecimal()

另请参阅

适用于

Explicit(SqlSingle to SqlMoney)

此运算符将提供的 SqlSingle 参数转换为 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要转换的结构。

返回

一个新SqlMoney结构,其Value属性等于ValueSqlSingle参数。

注解

此运算符的等效方法为 SqlSingle.ToSqlMoney()

另请参阅

适用于

Explicit(SqlString to SqlMoney)

此运算符将 SqlString 参数转换为 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要转换的对象。

返回

一个新 SqlMoney 结构,其 Value 属性等于参数表示 SqlString 的值。

注解

此运算符的等效方法为 SqlString.ToSqlMoney()

另请参阅

适用于

Explicit(Double to SqlMoney)

此隐式运算符将所提供的 SqlDouble 参数转换为 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

SqlDouble要转换的结构。

返回

一个新 SqlMoney 结构,其 Value 属性等于 ByteValue 参数的属性 SqlDouble

注解

此运算符的等效方法为 SqlDouble.ToSqlMoney()

另请参阅

适用于