SqlDecimal.Explicit 運算子
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將所提供的結構 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
參數
傳回
一個新 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
參數
傳回
一個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
參數
傳回
一個性質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
參數
要改建的 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
參數
要改建的 SqlBoolean 建築。
傳回
一個新SqlDecimal結構,其Value等於參數的SqlBoolean。ByteValue
備註
此運算子的等價方法為 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
參數
傳回
一個新SqlDecimal結構,其Value等於參數的SqlDouble。Value
備註
此運算子的等價方法為 SqlDouble.ToSqlDecimal()