SqlSingle.Explicit 運算子

定義

來回轉換 SqlSingleConverts 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 結構轉換成浮點數 (Float)。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 結構轉換成浮點數 (Float)。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.

傳回

浮點數,包含 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()

另請參閱

適用於