SqlDecimal.Explicit 運算子

定義

將所提供的結構 SqlDecimal轉換為 。

多載

名稱 Description
Explicit(Double to SqlDecimal)

Double 參數 SqlDecimal轉換為 。

Explicit(SqlString to SqlDecimal)

將所提供的 SqlString 參數 SqlDecimal轉換為 。

Explicit(SqlSingle to SqlDecimal)

將所提供的 SqlSingle 結構 SqlDecimal轉換為 。

Explicit(SqlDecimal to Decimal)

SqlDecimal 參數 Decimal轉換為 。

Explicit(SqlBoolean to SqlDecimal)

將所提供的 SqlBoolean 結構 SqlDecimal轉換為 。

Explicit(SqlDouble to SqlDecimal)

將所提供的 SqlDouble 結構 SqlDecimal轉換為 。

Explicit(Double to SqlDecimal)

Double 參數 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 建築。

傳回

一個新 SqlDecimal 結構,其值等於參數 Double 的值。

備註

此運算子的等價方法為 SqlDecimal.Value

適用於

Explicit(SqlString to SqlDecimal)

將所提供的 SqlString 參數 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要轉換的物件。

傳回

一個SqlDecimal等於參數所代表SqlString值的新結構Value

備註

此運算子的等價方法為 SqlString.ToSqlDecimal()

另請參閱

適用於

Explicit(SqlSingle to SqlDecimal)

將所提供的 SqlSingle 結構 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 建築。

傳回

一個性質SqlDecimalValue等於參數 的新ValueSqlSingle結構。

備註

此運算子的等價方法為 SqlSingle.ToSqlDecimal()

另請參閱

適用於

Explicit(SqlDecimal to Decimal)

SqlDecimal 參數 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 建築。

傳回

一個新Decimal結構,其值等於參數SqlDecimal的。Value

另請參閱

適用於

Explicit(SqlBoolean to SqlDecimal)

將所提供的 SqlBoolean 結構 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 建築。

傳回

一個新SqlDecimal結構,其Value等於參數的SqlBooleanByteValue

備註

此運算子的等價方法為 SqlBoolean.ToSqlDecimal()

另請參閱

適用於

Explicit(SqlDouble to SqlDecimal)

將所提供的 SqlDouble 結構 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 建築。

傳回

一個新SqlDecimal結構,其Value等於參數的SqlDoubleValue

備註

此運算子的等價方法為 SqlDouble.ToSqlDecimal()

另請參閱

適用於