SqlInt16.Explicit 运算符
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
以 SqlInt16 作为目标或者源进行转换。
重载
Explicit(SqlString to SqlInt16)
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt16(System::Data::SqlTypes::SqlString x);
public static explicit operator System.Data.SqlTypes.SqlInt16 (System.Data.SqlTypes.SqlString x);
static member op_Explicit : System.Data.SqlTypes.SqlString -> System.Data.SqlTypes.SqlInt16
Public Shared Narrowing Operator CType (x As SqlString) As SqlInt16
参数
返回
一个新的 SqlInt16 结构,它的 Value 属性等于 SqlString 对象参数表示的值。
注解
此运算符的等效方法是 SqlString.ToSqlInt16()
另请参阅
适用于
Explicit(SqlSingle to SqlInt16)
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt16(System::Data::SqlTypes::SqlSingle x);
public static explicit operator System.Data.SqlTypes.SqlInt16 (System.Data.SqlTypes.SqlSingle x);
static member op_Explicit : System.Data.SqlTypes.SqlSingle -> System.Data.SqlTypes.SqlInt16
Public Shared Narrowing Operator CType (x As SqlSingle) As SqlInt16
参数
返回
一个新的 SqlInt16 结构,其 Value 属性等于 SqlSingle 参数的整数部分。
注解
此运算符的等效方法是 SqlSingle.ToSqlInt16()
另请参阅
适用于
Explicit(SqlMoney to SqlInt16)
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt16(System::Data::SqlTypes::SqlMoney x);
public static explicit operator System.Data.SqlTypes.SqlInt16 (System.Data.SqlTypes.SqlMoney x);
static member op_Explicit : System.Data.SqlTypes.SqlMoney -> System.Data.SqlTypes.SqlInt16
Public Shared Narrowing Operator CType (x As SqlMoney) As SqlInt16
参数
返回
一个新的 SqlInt16 结构,它的 Value 属性等于 Value 参数的 SqlMoney 属性。
注解
此运算符的等效方法是 SqlMoney.ToSqlInt16()
另请参阅
适用于
Explicit(SqlInt64 to SqlInt16)
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt16(System::Data::SqlTypes::SqlInt64 x);
public static explicit operator System.Data.SqlTypes.SqlInt16 (System.Data.SqlTypes.SqlInt64 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt64 -> System.Data.SqlTypes.SqlInt16
Public Shared Narrowing Operator CType (x As SqlInt64) As SqlInt16
参数
返回
新的 SqlInt16 结构,它的 Value 属性等于 Value 参数的 SqlInt64。
注解
此运算符的等效方法是 SqlInt64.ToSqlInt16()
另请参阅
适用于
Explicit(SqlInt16 to Int16)
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
将提供的 SqlInt16 结构转换为短整型。
public:
static explicit operator short(System::Data::SqlTypes::SqlInt16 x);
public static explicit operator short (System.Data.SqlTypes.SqlInt16 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt16 -> int16
Public Shared Narrowing Operator CType (x As SqlInt16) As Short
参数
返回
短整型,其值等于 SqlInt16 参数的值。
另请参阅
适用于
Explicit(SqlDouble to SqlInt16)
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt16(System::Data::SqlTypes::SqlDouble x);
public static explicit operator System.Data.SqlTypes.SqlInt16 (System.Data.SqlTypes.SqlDouble x);
static member op_Explicit : System.Data.SqlTypes.SqlDouble -> System.Data.SqlTypes.SqlInt16
Public Shared Narrowing Operator CType (x As SqlDouble) As SqlInt16
参数
返回
一个新的 SqlInt16 结构,其 Value 属性等于 SqlDouble 参数的整数部分。
注解
此运算符的等效方法是 SqlDouble.ToSqlInt16()
另请参阅
适用于
Explicit(SqlDecimal to SqlInt16)
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
将提供的 SqlDecimal 结构转换为 SqlInt16。
public:
static explicit operator System::Data::SqlTypes::SqlInt16(System::Data::SqlTypes::SqlDecimal x);
public static explicit operator System.Data.SqlTypes.SqlInt16 (System.Data.SqlTypes.SqlDecimal x);
static member op_Explicit : System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlInt16
Public Shared Narrowing Operator CType (x As SqlDecimal) As SqlInt16
参数
SqlDecimal 结构。
返回
一个新的 SqlInt16 结构,它的 Value 属性等于 Value 参数的 SqlDecimal 属性。
注解
此运算符的等效方法是 SqlDecimal.ToSqlInt16()
另请参阅
适用于
Explicit(SqlBoolean to SqlInt16)
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
将提供的 SqlBoolean 结构转换为 SqlInt16。
public:
static explicit operator System::Data::SqlTypes::SqlInt16(System::Data::SqlTypes::SqlBoolean x);
public static explicit operator System.Data.SqlTypes.SqlInt16 (System.Data.SqlTypes.SqlBoolean x);
static member op_Explicit : System.Data.SqlTypes.SqlBoolean -> System.Data.SqlTypes.SqlInt16
Public Shared Narrowing Operator CType (x As SqlBoolean) As SqlInt16
参数
SqlBoolean 结构。
返回
一个新的 SqlInt16 结构,它的 Value 属性等于 ByteValue 参数的 SqlBoolean 属性。
注解
此运算符的等效方法是 SqlBoolean.ToSqlInt16()
另请参阅
适用于
Explicit(SqlInt32 to SqlInt16)
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
- Source:
- SQLInt16.cs
public:
static explicit operator System::Data::SqlTypes::SqlInt16(System::Data::SqlTypes::SqlInt32 x);
public static explicit operator System.Data.SqlTypes.SqlInt16 (System.Data.SqlTypes.SqlInt32 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt32 -> System.Data.SqlTypes.SqlInt16
Public Shared Narrowing Operator CType (x As SqlInt32) As SqlInt16
参数
返回
一个新的 SqlInt16 结构,它的 Value 属性等于提供的 Value 参数的 SqlInt32。
注解
此运算符的等效方法是 SqlInt32.ToSqlInt16()