SqlDecimal.Implicit 運算子

定義

將提供的結構轉換成 SqlDecimal

多載

Implicit(SqlMoney to SqlDecimal)

SqlMoney 運算元轉換成 SqlDecimal

Implicit(Int64 to SqlDecimal)

將提供的 Int64 結構轉換成 SqlDecimal

Implicit(Decimal to SqlDecimal)

Decimal 值轉換成 SqlDecimal

Implicit(SqlInt64 to SqlDecimal)

將提供的 SqlInt64 結構轉換成 SqlDecimal。

Implicit(SqlInt32 to SqlDecimal)

將提供的 SqlInt32 結構轉換成 SqlDecimal

Implicit(SqlInt16 to SqlDecimal)

將提供的 SqlInt16 結構轉換成 SqlDecimal

Implicit(SqlByte to SqlDecimal)

將提供的 SqlByte 結構轉換成 SqlDecimal

Implicit(SqlMoney to SqlDecimal)

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

SqlMoney 運算元轉換成 SqlDecimal

public:
 static operator System::Data::SqlTypes::SqlDecimal(System::Data::SqlTypes::SqlMoney x);
public static implicit operator System.Data.SqlTypes.SqlDecimal (System.Data.SqlTypes.SqlMoney x);
static member op_Implicit : System.Data.SqlTypes.SqlMoney -> System.Data.SqlTypes.SqlDecimal
Public Shared Widening Operator CType (x As SqlMoney) As SqlDecimal

參數

x
SqlMoney

要轉換的 SqlMoney 結構。

傳回

新的 SqlDecimal 結構,其 Value 等於 Value 參數的 SqlMoney

備註

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

另請參閱

適用於

Implicit(Int64 to SqlDecimal)

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

將提供的 Int64 結構轉換成 SqlDecimal

public:
 static operator System::Data::SqlTypes::SqlDecimal(long x);
public static implicit operator System.Data.SqlTypes.SqlDecimal (long x);
static member op_Implicit : int64 -> System.Data.SqlTypes.SqlDecimal
Public Shared Widening Operator CType (x As Long) As SqlDecimal

參數

x
Int64

要轉換的 Int64 結構。

傳回

新的 SqlDecimal 結構,其 Value 屬性等於 Int64 參數的值。

備註

這個運算子的對等方法為 SqlDecimal.Value

另請參閱

適用於

Implicit(Decimal to SqlDecimal)

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

Decimal 值轉換成 SqlDecimal

public:
 static operator System::Data::SqlTypes::SqlDecimal(System::Decimal x);
public static implicit operator System.Data.SqlTypes.SqlDecimal (decimal x);
static member op_Implicit : decimal -> System.Data.SqlTypes.SqlDecimal
Public Shared Widening Operator CType (x As Decimal) As SqlDecimal

參數

x
Decimal

要被轉換的 Decimal 值。

傳回

新的 SqlDecimal 結構,其 Value 屬性等於 Decimal 參數的值。

另請參閱

適用於

Implicit(SqlInt64 to SqlDecimal)

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

將提供的 SqlInt64 結構轉換成 SqlDecimal。

public:
 static operator System::Data::SqlTypes::SqlDecimal(System::Data::SqlTypes::SqlInt64 x);
public static implicit operator System.Data.SqlTypes.SqlDecimal (System.Data.SqlTypes.SqlInt64 x);
static member op_Implicit : System.Data.SqlTypes.SqlInt64 -> System.Data.SqlTypes.SqlDecimal
Public Shared Widening Operator CType (x As SqlInt64) As SqlDecimal

參數

x
SqlInt64

要轉換的 SqlInt64 結構。

傳回

新的 SqlDecimal 結構,其 Value 等於 Value 參數的 SqlInt64

備註

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

另請參閱

適用於

Implicit(SqlInt32 to SqlDecimal)

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

將提供的 SqlInt32 結構轉換成 SqlDecimal

public:
 static operator System::Data::SqlTypes::SqlDecimal(System::Data::SqlTypes::SqlInt32 x);
public static implicit operator System.Data.SqlTypes.SqlDecimal (System.Data.SqlTypes.SqlInt32 x);
static member op_Implicit : System.Data.SqlTypes.SqlInt32 -> System.Data.SqlTypes.SqlDecimal
Public Shared Widening Operator CType (x As SqlInt32) As SqlDecimal

參數

x
SqlInt32

要轉換的 SqlInt32 結構。

傳回

新的 SqlDecimal 結構,其 Value 屬性等於 Value 參數的 SqlInt32 屬性。

備註

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

另請參閱

適用於

Implicit(SqlInt16 to SqlDecimal)

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

將提供的 SqlInt16 結構轉換成 SqlDecimal

public:
 static operator System::Data::SqlTypes::SqlDecimal(System::Data::SqlTypes::SqlInt16 x);
public static implicit operator System.Data.SqlTypes.SqlDecimal (System.Data.SqlTypes.SqlInt16 x);
static member op_Implicit : System.Data.SqlTypes.SqlInt16 -> System.Data.SqlTypes.SqlDecimal
Public Shared Widening Operator CType (x As SqlInt16) As SqlDecimal

參數

x
SqlInt16

要轉換的 SqlInt16 結構。

傳回

新的 SqlDecimal 結構,其 Value 屬性等於 Value 參數的 SqlInt16 屬性。

備註

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

另請參閱

適用於

Implicit(SqlByte to SqlDecimal)

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

將提供的 SqlByte 結構轉換成 SqlDecimal

public:
 static operator System::Data::SqlTypes::SqlDecimal(System::Data::SqlTypes::SqlByte x);
public static implicit operator System.Data.SqlTypes.SqlDecimal (System.Data.SqlTypes.SqlByte x);
static member op_Implicit : System.Data.SqlTypes.SqlByte -> System.Data.SqlTypes.SqlDecimal
Public Shared Widening Operator CType (x As SqlByte) As SqlDecimal

參數

x
SqlByte

要轉換的 SqlByte 結構。

傳回

新的 SqlDecimal 結構,其 Value 屬性等於 Value 參數的 SqlByte 屬性。

備註

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

另請參閱

適用於