SqlDouble.Explicit SqlDouble.Explicit SqlDouble.Explicit SqlDouble.Explicit Operator

定義

多載

Explicit(SqlBoolean to SqlDouble) Explicit(SqlBoolean to SqlDouble) Explicit(SqlBoolean to SqlDouble) Explicit(SqlBoolean to SqlDouble)

將提供的 SqlBoolean 參數轉換成 SqlDoubleConverts the supplied SqlBoolean parameter to SqlDouble.

Explicit(SqlDouble to Double) Explicit(SqlDouble to Double) Explicit(SqlDouble to Double) Explicit(SqlDouble to Double)

將提供的 SqlDouble 結構轉換成雙精確度浮點數。Converts the supplied SqlDouble structure to double.

Explicit(SqlString to SqlDouble) Explicit(SqlString to SqlDouble) Explicit(SqlString to SqlDouble) Explicit(SqlString to SqlDouble)

將提供的 SqlString 參數轉換成 SqlDoubleConverts the supplied SqlString parameter to SqlDouble.

Explicit(SqlBoolean to SqlDouble) Explicit(SqlBoolean to SqlDouble) Explicit(SqlBoolean to SqlDouble) Explicit(SqlBoolean to SqlDouble)

將提供的 SqlBoolean 參數轉換成 SqlDoubleConverts the supplied SqlBoolean parameter to SqlDouble.

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

參數

x
SqlBoolean SqlBoolean SqlBoolean SqlBoolean

要轉換的 SqlBooleanThe SqlBoolean to be converted.

傳回

新的 SqlDouble 結構,根據 Value 參數的 ByteValue 屬性,其 SqlBoolean 不是 0 就是 1。A new SqlDouble structure whose Value is either 0 or 1, depending on the ByteValue property of the SqlBoolean parameter. 如果 SqlBooleanNull,則 SqlDouble 結構會是 NullIf the SqlBoolean is Null, the SqlDouble structure will be Null.

備註

這個運算子的對等方法是SqlBoolean.ToSqlDouble()The equivalent method for this operator is SqlBoolean.ToSqlDouble()

另請參閱

Explicit(SqlDouble to Double) Explicit(SqlDouble to Double) Explicit(SqlDouble to Double) Explicit(SqlDouble to Double)

將提供的 SqlDouble 結構轉換成雙精確度浮點數。Converts the supplied SqlDouble structure to double.

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

參數

傳回

雙精確度浮點數,相當於指定的 SqlDouble 結構之值。A double equivalent to the specified SqlDouble structure's value.

另請參閱

Explicit(SqlString to SqlDouble) Explicit(SqlString to SqlDouble) Explicit(SqlString to SqlDouble) Explicit(SqlString to SqlDouble)

將提供的 SqlString 參數轉換成 SqlDoubleConverts the supplied SqlString parameter to SqlDouble.

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

參數

傳回

新的 SqlDouble,其 Value 等於 SqlString 表示的數字值。A new SqlDouble whose Value is equal to the value of the number represented by the SqlString. 如果 SqlStringNull,則 SqlDouble 結構會是 NullIf the SqlString is Null, the SqlDouble structure will be Null.

備註

這個運算子的對等方法是SqlString.ToSqlDouble()The equivalent method for this operator is SqlString.ToSqlDouble()

另請參閱

適用於