SqlInt32.Explicit 运算符
定义
重载
| Explicit(SqlString to SqlInt32) |
将提供的 SqlString 对象转换为 SqlInt32。Converts the supplied SqlString object to SqlInt32. |
| Explicit(SqlSingle to SqlInt32) |
将提供的 SqlSingle 转换为 SqlInt32。Converts the supplied SqlSingle to SqlInt32. |
| Explicit(SqlMoney to SqlInt32) |
将提供的 SqlMoney 结构转换为 SqlInt32。Converts the supplied SqlMoney structure to SqlInt32. |
| Explicit(SqlInt64 to SqlInt32) |
将提供的 SqlInt64 转换为 SqlInt32。Converts the supplied SqlInt64 to SqlInt32. |
| Explicit(SqlDouble to SqlInt32) |
将提供的 SqlDouble 转换为 SqlInt32。Converts the supplied SqlDouble to SqlInt32. |
| Explicit(SqlDecimal to SqlInt32) |
将提供的 SqlDecimal 结构转换为 SqlInt32。Converts the supplied SqlDecimal structure to SqlInt32. |
| Explicit(SqlBoolean to SqlInt32) |
将提供的 SqlBoolean 转换为 SqlInt32。Converts the supplied SqlBoolean to SqlInt32. |
| Explicit(SqlInt32 to Int32) |
将提供的 SqlInt32 结构转换为整数。Converts the supplied SqlInt32 structure to an integer. |
Explicit(SqlString to SqlInt32)
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlString x);
public static explicit operator System.Data.SqlTypes.SqlInt32 (System.Data.SqlTypes.SqlString x);
static member op_Explicit : System.Data.SqlTypes.SqlString -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlString) As SqlInt32
参数
返回
一个新的 SqlInt32 结构,它的 Value 属性等于 SqlString 参数表示的值。A new SqlInt32 structure whose Value property equals the value represented by the SqlString parameter.
注解
此运算符的等效方法是 SqlString.ToSqlInt32()The equivalent method for this operator is SqlString.ToSqlInt32()
适用于
Explicit(SqlSingle to SqlInt32)
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlSingle x);
public static explicit operator System.Data.SqlTypes.SqlInt32 (System.Data.SqlTypes.SqlSingle x);
static member op_Explicit : System.Data.SqlTypes.SqlSingle -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlSingle) As SqlInt32
参数
返回
一个新的 SqlInt32 结构,它的 Value 属性等于 SqlSingle 参数的整数部分。A new SqlInt32 structure whose Value property equals the integer part of the SqlSingle parameter.
注解
此运算符的等效方法是 SqlSingle.ToSqlInt32()The equivalent method for this operator is SqlSingle.ToSqlInt32()
适用于
Explicit(SqlMoney to SqlInt32)
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlMoney x);
public static explicit operator System.Data.SqlTypes.SqlInt32 (System.Data.SqlTypes.SqlMoney x);
static member op_Explicit : System.Data.SqlTypes.SqlMoney -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlMoney) As SqlInt32
参数
返回
一个新的 SqlInt32 结构,它的 Value 属性等于 Value 参数的 SqlMoney 属性。A new SqlInt32 structure whose Value property equals the Value property of the SqlMoney parameter.
注解
此运算符的等效方法是 SqlMoney.ToSqlInt32()The equivalent method for this operator is SqlMoney.ToSqlInt32()
适用于
Explicit(SqlInt64 to SqlInt32)
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlInt64 x);
public static explicit operator System.Data.SqlTypes.SqlInt32 (System.Data.SqlTypes.SqlInt64 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt64 -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlInt64) As SqlInt32
参数
返回
一个新的 SqlInt32 结构,它的 Value 属性等于 Value 参数的 SqlInt64 属性。A new SqlInt32 structure whose Value property equals the Value property of the SqlInt64 parameter.
注解
此运算符的等效方法是 SqlInt64.ToSqlInt32()The equivalent method for this operator is SqlInt64.ToSqlInt32()
适用于
Explicit(SqlDouble to SqlInt32)
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlDouble x);
public static explicit operator System.Data.SqlTypes.SqlInt32 (System.Data.SqlTypes.SqlDouble x);
static member op_Explicit : System.Data.SqlTypes.SqlDouble -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlDouble) As SqlInt32
参数
返回
一个新的 SqlInt32 结构,它的 Value 属性等于 SqlDouble 参数的整数部分。A new SqlInt32 structure whose Value property equals the integer part of the SqlDouble parameter.
注解
此运算符的等效方法是 SqlDouble.ToSqlInt32()The equivalent method for this operator is SqlDouble.ToSqlInt32()
适用于
Explicit(SqlDecimal to SqlInt32)
将提供的 SqlDecimal 结构转换为 SqlInt32。Converts the supplied SqlDecimal structure to SqlInt32.
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlDecimal x);
public static explicit operator System.Data.SqlTypes.SqlInt32 (System.Data.SqlTypes.SqlDecimal x);
static member op_Explicit : System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlDecimal) As SqlInt32
参数
SqlDecimal 结构。A SqlDecimal structure.
返回
一个新的 SqlInt32 结构,它的 Value 属性等于 Value 参数的 SqlDecimal 属性。A new SqlInt32 structure whose Value property equals the Value property of the SqlDecimal parameter.
注解
此运算符的等效方法是 SqlDecimal.ToSqlInt32()The equivalent method for this operator is SqlDecimal.ToSqlInt32()
适用于
Explicit(SqlBoolean to SqlInt32)
将提供的 SqlBoolean 转换为 SqlInt32。Converts the supplied SqlBoolean to SqlInt32.
public:
static explicit operator System::Data::SqlTypes::SqlInt32(System::Data::SqlTypes::SqlBoolean x);
public static explicit operator System.Data.SqlTypes.SqlInt32 (System.Data.SqlTypes.SqlBoolean x);
static member op_Explicit : System.Data.SqlTypes.SqlBoolean -> System.Data.SqlTypes.SqlInt32
Public Shared Narrowing Operator CType (x As SqlBoolean) As SqlInt32
参数
SqlBoolean 结构。A SqlBoolean structure.
返回
一个新的 SqlInt32 结构,它的 Value 属性等于 ByteValue 参数的 SqlBoolean 属性。A new SqlInt32 structure whose Value property is equal to the ByteValue property of the SqlBoolean parameter.
注解
此运算符的等效方法是 SqlBoolean.ToSqlInt32()The equivalent method for this operator is SqlBoolean.ToSqlInt32()
适用于
Explicit(SqlInt32 to Int32)
public:
static explicit operator int(System::Data::SqlTypes::SqlInt32 x);
public static explicit operator int (System.Data.SqlTypes.SqlInt32 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt32 -> int
Public Shared Narrowing Operator CType (x As SqlInt32) As Integer
参数
返回
已转换的整数值。The converted integer value.