SqlDecimal.Explicit 操作员  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将提供的结构转换为 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)
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- 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.SqlDecimalPublic Shared Narrowing Operator CType (x As Double) As SqlDecimal参数
返回
一个新 SqlDecimal 结构,它的值等于 Double 参数的值。
注解
此运算符的等效方法是 SqlDecimal.Value
适用于
Explicit(SqlString to SqlDecimal)
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- 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.SqlDecimalPublic Shared Narrowing Operator CType (x As SqlString) As SqlDecimal参数
返回
一个新的 SqlDecimal 结构,其 Value 等于 SqlString 参数表示的值。
注解
此运算符的等效方法是 SqlString.ToSqlDecimal()
另请参阅
适用于
Explicit(SqlSingle to SqlDecimal)
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- 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.SqlDecimalPublic Shared Narrowing Operator CType (x As SqlSingle) As SqlDecimal参数
返回
一个新的 SqlDecimal 结构,它的 Value 属性等于 Value 参数的 SqlSingle。
注解
此运算符的等效方法是 SqlSingle.ToSqlDecimal()
另请参阅
适用于
Explicit(SqlDecimal to Decimal)
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- 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 -> decimalPublic Shared Narrowing Operator CType (x As SqlDecimal) As Decimal参数
要转换的 SqlDecimal 结构。
返回
一个新 Decimal 结构,它的值等于 Value 参数的 SqlDecimal。
另请参阅
适用于
Explicit(SqlBoolean to SqlDecimal)
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- 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.SqlDecimalPublic Shared Narrowing Operator CType (x As SqlBoolean) As SqlDecimal参数
要转换的 SqlBoolean 结构。
返回
一个新的 SqlDecimal 结构,它的 Value 等于 ByteValue 参数的 SqlBoolean。
注解
此运算符的等效方法是 SqlBoolean.ToSqlDecimal()
另请参阅
适用于
Explicit(SqlDouble to SqlDecimal)
- Source:
- SQLDecimal.cs
- Source:
- SQLDecimal.cs
- Source:
- 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.SqlDecimalPublic Shared Narrowing Operator CType (x As SqlDouble) As SqlDecimal参数
返回
一个新的 SqlDecimal 结构,它的 Value 等于 Value 参数的 SqlDouble。
注解
此运算符的等效方法是 SqlDouble.ToSqlDecimal()