SqlSingle.Explicit 操作员

定义

SqlSingle 作为目标或者源进行转换。Converts to and from a SqlSingle.

重载

Explicit(SqlBoolean to SqlSingle)

此隐式运算符将提供的 SqlBoolean 转换为 SqlSingleThis implicit operator converts the supplied SqlBoolean to SqlSingle.

Explicit(SqlDouble to SqlSingle)

将提供的 SqlDouble 参数转换为 SqlSingleConverts the supplied SqlDouble parameter to SqlSingle.

Explicit(SqlSingle to Single)

将指定的 SqlSingle 结构转换为浮点型。Converts the specified SqlSingle structure to float.

Explicit(SqlString to SqlSingle)

将提供的 SqlString 参数转换为 SqlSingleConverts the supplied SqlString parameter to SqlSingle.

Explicit(SqlBoolean to SqlSingle)

此隐式运算符将提供的 SqlBoolean 转换为 SqlSingleThis implicit operator converts the supplied SqlBoolean to SqlSingle.

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

参数

x
SqlBoolean

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

返回

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

注解

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

另请参阅

Explicit(SqlDouble to SqlSingle)

将提供的 SqlDouble 参数转换为 SqlSingleConverts the supplied SqlDouble parameter to SqlSingle.

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

参数

x
SqlDouble

要转换的 SqlDouble 参数。The SqlDouble parameter to be converted.

返回

一个新的 SqlSingle 结构,它的 Value 等于 Value 参数的 SqlDoubleA new SqlSingle structure whose Value is equal to the Value of the SqlDouble parameter.

注解

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

另请参阅

Explicit(SqlSingle to Single)

将指定的 SqlSingle 结构转换为浮点型。Converts the specified SqlSingle structure to float.

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

参数

x
SqlSingle

要转换为浮点型的 SqlSingle 值。The SqlSingle value to be converted to float.

返回

一个 float 类型值,包含 SqlSingle 结构的值。A float that contains the value of the SqlSingle structure.

另请参阅

Explicit(SqlString to SqlSingle)

将提供的 SqlString 参数转换为 SqlSingleConverts the supplied SqlString parameter to SqlSingle.

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

参数

x
SqlString

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

返回

一个新的 SqlSingle 结构,它的 Value 等于 SqlString 参数表示的值。A new SqlSingle structure whose Value is equal to the value represented by the SqlString parameter.

注解

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

另请参阅

适用于