语言

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)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
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.SqlDecimal
Public Shared Narrowing Operator CType (x As Double) As SqlDecimal

参数

x
Double

Double要转换的结构。

返回

一个新 SqlDecimal 结构,其值等于参数的值 Double 。

注解

此运算符的等效方法为 SqlDecimal.Value

适用于

Explicit(SqlString to SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
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.SqlDecimal
Public Shared Narrowing Operator CType (x As SqlString) As SqlDecimal

参数

x
SqlString

SqlString要转换的对象。

返回

一个新 SqlDecimal 结构,其 Value 等于参数表示 SqlString 的值。

注解

此运算符的等效方法为 SqlString.ToSqlDecimal()

另请参阅

适用于

Explicit(SqlSingle to SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
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.SqlDecimal
Public Shared Narrowing Operator CType (x As SqlSingle) As SqlDecimal

参数

x
SqlSingle

SqlSingle要转换的结构。

返回

一个新SqlDecimal结构,其Value属性等于ValueSqlSingle参数。

注解

此运算符的等效方法为 SqlSingle.ToSqlDecimal()

另请参阅

适用于

Explicit(SqlDecimal to Decimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
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 -> decimal
Public Shared Narrowing Operator CType (x As SqlDecimal) As Decimal

参数

x
SqlDecimal

SqlDecimal要转换的结构。

返回

一个新Decimal结构,其值等于ValueSqlDecimal参数。

另请参阅

适用于

Explicit(SqlBoolean to SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
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.SqlDecimal
Public Shared Narrowing Operator CType (x As SqlBoolean) As SqlDecimal

参数

x
SqlBoolean

SqlBoolean要转换的结构。

返回

一个新SqlDecimal结构,其Value等于ByteValueSqlBoolean参数。

注解

此运算符的等效方法为 SqlBoolean.ToSqlDecimal()

另请参阅

适用于

Explicit(SqlDouble to SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
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.SqlDecimal
Public Shared Narrowing Operator CType (x As SqlDouble) As SqlDecimal

参数

x
SqlDouble

SqlDouble要转换的结构。

返回

一个新SqlDecimal结构,其Value等于ValueSqlDouble参数。

注解

此运算符的等效方法为 SqlDouble.ToSqlDecimal()

另请参阅

适用于