SqlDecimal.Implicit 運算子
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將提供的結構轉換成 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。 |
將 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
參數
傳回
新的 SqlDecimal 結構,其 Value 等於 Value 參數的 SqlMoney。
備註
這個運算子的對等方法為 SqlMoney.ToSqlDecimal()
另請參閱
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
將提供的 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
參數
傳回
新的 SqlDecimal 結構,其 Value 屬性等於 Int64 參數的值。
備註
這個運算子的對等方法為 SqlDecimal.Value
另請參閱
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
將 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
參數
傳回
新的 SqlDecimal 結構,其 Value 屬性等於 Decimal
參數的值。
另請參閱
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
將提供的 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
參數
傳回
新的 SqlDecimal 結構,其 Value 等於 Value 參數的 SqlInt64。
備註
這個運算子的對等方法為 SqlInt64.ToSqlDecimal()
另請參閱
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
將提供的 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
參數
傳回
新的 SqlDecimal 結構,其 Value 屬性等於 Value 參數的 SqlInt32 屬性。
備註
這個運算子的對等方法為 SqlInt32.ToSqlDecimal()
另請參閱
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
將提供的 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
參數
傳回
新的 SqlDecimal 結構,其 Value 屬性等於 Value 參數的 SqlInt16 屬性。
備註
這個運算子的對等方法為 SqlInt16.ToSqlDecimal()
另請參閱
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
將提供的 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
參數
傳回
新的 SqlDecimal 結構,其 Value 屬性等於 Value 參數的 SqlByte 屬性。
備註
這個運算子的對等方法為 SqlByte.ToSqlDecimal()
另請參閱
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |