SqlDecimal.Explicit Operator
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the supplied structure to SqlDecimal.
Explicit(Double to SqlDecimal) |
Converts the Double parameter to SqlDecimal. |
Explicit(SqlString to SqlDecimal) |
Converts the supplied SqlString parameter to SqlDecimal. |
Explicit(SqlSingle to SqlDecimal) |
Converts the supplied SqlSingle structure to SqlDecimal. |
Explicit(SqlDecimal to Decimal) |
Converts the SqlDecimal parameter to Decimal. |
Explicit(SqlBoolean to SqlDecimal) |
Converts the supplied SqlBoolean structure to SqlDecimal. |
Explicit(SqlDouble to SqlDecimal) |
Converts the supplied SqlDouble structure to SqlDecimal. |
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
Converts the Double parameter to 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
Parameters
Returns
A new SqlDecimal structure whose value equals the value of the Double parameter.
Remarks
The equivalent method for this operator is SqlDecimal.Value
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.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, 10 |
.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 |
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
Converts the supplied SqlString parameter to 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
Parameters
Returns
A new SqlDecimal structure whose Value equals the value represented by the SqlString parameter.
Remarks
The equivalent method for this operator is SqlString.ToSqlDecimal()
See also
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.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, 10 |
.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 |
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
Converts the supplied SqlSingle structure to 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
Parameters
Returns
A new SqlDecimal structure whose Value property equals the Value of the SqlSingle parameter.
Remarks
The equivalent method for this operator is SqlSingle.ToSqlDecimal()
See also
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.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, 10 |
.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 |
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
Converts the SqlDecimal parameter to 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
Parameters
The SqlDecimal structure to be converted.
Returns
A new Decimal
structure whose value equals the Value of the SqlDecimal parameter.
See also
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.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, 10 |
.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 |
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
Converts the supplied SqlBoolean structure to 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
Parameters
The SqlBoolean structure to be converted.
Returns
A new SqlDecimal structure whose Value is equal to the ByteValue of the SqlBoolean parameter.
Remarks
The equivalent method for this operator is SqlBoolean.ToSqlDecimal()
See also
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.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, 10 |
.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 |
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
Converts the supplied SqlDouble structure to 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
Parameters
Returns
A new SqlDecimal structure whose Value equals the Value of the SqlDouble parameter.
Remarks
The equivalent method for this operator is SqlDouble.ToSqlDecimal()
See also
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.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, 10 |
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: