SqlDecimal.Explicit SqlDecimal.Explicit SqlDecimal.Explicit SqlDecimal.Explicit Operator

定义

重载

Explicit(Double to SqlDecimal) Explicit(Double to SqlDecimal) Explicit(Double to SqlDecimal) Explicit(Double to SqlDecimal)

Double 参数转换为 SqlDecimalConverts the Double parameter to SqlDecimal.

Explicit(SqlString to SqlDecimal) Explicit(SqlString to SqlDecimal) Explicit(SqlString to SqlDecimal) Explicit(SqlString to SqlDecimal)

将提供的 SqlString 参数转换为 SqlDecimalConverts the supplied SqlString parameter to SqlDecimal.

Explicit(SqlSingle to SqlDecimal) Explicit(SqlSingle to SqlDecimal) Explicit(SqlSingle to SqlDecimal) Explicit(SqlSingle to SqlDecimal)

将提供的 SqlSingle 结构转换为 SqlDecimalConverts the supplied SqlSingle structure to SqlDecimal.

Explicit(SqlDecimal to Decimal) Explicit(SqlDecimal to Decimal) Explicit(SqlDecimal to Decimal) Explicit(SqlDecimal to Decimal)

SqlDecimal 参数转换为 DecimalConverts the SqlDecimal parameter to Decimal.

Explicit(SqlBoolean to SqlDecimal) Explicit(SqlBoolean to SqlDecimal) Explicit(SqlBoolean to SqlDecimal) Explicit(SqlBoolean to SqlDecimal)

将提供的 SqlBoolean 结构转换为 SqlDecimalConverts the supplied SqlBoolean structure to SqlDecimal.

Explicit(SqlDouble to SqlDecimal) Explicit(SqlDouble to SqlDecimal) Explicit(SqlDouble to SqlDecimal) Explicit(SqlDouble to SqlDecimal)

将提供的 SqlDouble 结构转换为 SqlDecimalConverts the supplied SqlDouble structure to SqlDecimal.

Explicit(Double to SqlDecimal) Explicit(Double to SqlDecimal) Explicit(Double to SqlDecimal) Explicit(Double to SqlDecimal)

Double 参数转换为 SqlDecimalConverts the Double parameter to SqlDecimal.

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

参数

x
Double Double Double Double

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

返回

一个新 SqlDecimal 结构,它的值等于 Double 参数的值。A new SqlDecimal structure whose value equals the value of the Double parameter.

注解

此运算符的等效方法是 SqlDecimal.ValueThe equivalent method for this operator is SqlDecimal.Value

Explicit(SqlString to SqlDecimal) Explicit(SqlString to SqlDecimal) Explicit(SqlString to SqlDecimal) Explicit(SqlString to SqlDecimal)

将提供的 SqlString 参数转换为 SqlDecimalConverts the supplied SqlString parameter to SqlDecimal.

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

参数

x
SqlString SqlString SqlString SqlString

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

返回

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

注解

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

另请参阅

Explicit(SqlSingle to SqlDecimal) Explicit(SqlSingle to SqlDecimal) Explicit(SqlSingle to SqlDecimal) Explicit(SqlSingle to SqlDecimal)

将提供的 SqlSingle 结构转换为 SqlDecimalConverts the supplied SqlSingle structure to SqlDecimal.

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

参数

x
SqlSingle SqlSingle SqlSingle SqlSingle

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

返回

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

注解

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

另请参阅

Explicit(SqlDecimal to Decimal) Explicit(SqlDecimal to Decimal) Explicit(SqlDecimal to Decimal) Explicit(SqlDecimal to Decimal)

SqlDecimal 参数转换为 DecimalConverts the SqlDecimal parameter to Decimal.

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

参数

x
SqlDecimal SqlDecimal SqlDecimal SqlDecimal

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

返回

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

另请参阅

Explicit(SqlBoolean to SqlDecimal) Explicit(SqlBoolean to SqlDecimal) Explicit(SqlBoolean to SqlDecimal) Explicit(SqlBoolean to SqlDecimal)

将提供的 SqlBoolean 结构转换为 SqlDecimalConverts the supplied SqlBoolean structure to SqlDecimal.

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

参数

x
SqlBoolean SqlBoolean SqlBoolean SqlBoolean

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

返回

一个新的 SqlDecimal 结构,它的 Value 等于 ByteValue 参数的 SqlBooleanA new SqlDecimal structure whose Value is equal to the ByteValue of the SqlBoolean parameter.

注解

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

另请参阅

Explicit(SqlDouble to SqlDecimal) Explicit(SqlDouble to SqlDecimal) Explicit(SqlDouble to SqlDecimal) Explicit(SqlDouble to SqlDecimal)

将提供的 SqlDouble 结构转换为 SqlDecimalConverts the supplied SqlDouble structure to SqlDecimal.

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

参数

x
SqlDouble SqlDouble SqlDouble SqlDouble

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

返回

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

注解

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

另请参阅

适用于