SqlDecimal.Explicit 運算子

定義

將提供的結構轉換成 SqlDecimal

多載

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)

來源:
SQLDecimal.cs
來源:
SQLDecimal.cs
來源:
SQLDecimal.cs

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)

來源:
SQLDecimal.cs
來源:
SQLDecimal.cs
來源:
SQLDecimal.cs

將提供的 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 結構,其 Value 等於 SqlString 參數表示的值。

備註

這個運算子的對等方法為 SqlString.ToSqlDecimal()

另請參閱

適用於

Explicit(SqlSingle to SqlDecimal)

來源:
SQLDecimal.cs
來源:
SQLDecimal.cs
來源:
SQLDecimal.cs

將提供的 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 結構。

傳回

SqlDecimal 結構,其 Value 屬性等於 Value 參數的 SqlSingle

備註

這個運算子的對等方法為 SqlSingle.ToSqlDecimal()

另請參閱

適用於

Explicit(SqlDecimal to Decimal)

來源:
SQLDecimal.cs
來源:
SQLDecimal.cs
來源:
SQLDecimal.cs

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 結構,其值等於 Value 參數的 SqlDecimal

另請參閱

適用於

Explicit(SqlBoolean to SqlDecimal)

來源:
SQLDecimal.cs
來源:
SQLDecimal.cs
來源:
SQLDecimal.cs

將提供的 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 等於 ByteValue 參數的 SqlBoolean

備註

這個運算子的對等方法為 SqlBoolean.ToSqlDecimal()

另請參閱

適用於

Explicit(SqlDouble to SqlDecimal)

來源:
SQLDecimal.cs
來源:
SQLDecimal.cs
來源:
SQLDecimal.cs

將提供的 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 等於 Value 參數的 SqlDouble

備註

這個運算子的對等方法為 SqlDouble.ToSqlDecimal()

另請參閱

適用於