SqlBoolean.Explicit 操作员
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 a SqlBoolean 转换为指定的结构。
重载
| 名称 | 说明 |
|---|---|
| Explicit(SqlString to SqlBoolean) |
将 SqlString 参数转换为 SqlBoolean 结构。 |
| Explicit(SqlSingle to SqlBoolean) |
将 SqlSingle 参数转换为 SqlBoolean 结构。 |
| Explicit(SqlMoney to SqlBoolean) |
将 SqlMoney 参数转换为 SqlBoolean 结构。 |
| Explicit(SqlInt32 to SqlBoolean) |
将 SqlInt32 参数转换为 SqlBoolean 结构。 |
| Explicit(SqlInt64 to SqlBoolean) |
将 SqlInt64 参数转换为 SqlBoolean 结构。 |
| Explicit(SqlDouble to SqlBoolean) |
将 SqlDouble 参数转换为 SqlBoolean 结构。 |
| Explicit(SqlInt16 to SqlBoolean) |
将 SqlInt16 参数转换为 SqlBoolean 结构。 |
| Explicit(SqlDecimal to SqlBoolean) |
将 SqlDecimal 参数转换为 SqlBoolean 结构。 |
| Explicit(SqlByte to SqlBoolean) |
将 SqlByte 参数转换为 SqlBoolean 结构。 |
| Explicit(SqlBoolean to Boolean) |
将 a SqlBoolean 转换为布尔值。 |
Explicit(SqlString to SqlBoolean)
将 SqlString 参数转换为 SqlBoolean 结构。
public:
static explicit operator System::Data::SqlTypes::SqlBoolean(System::Data::SqlTypes::SqlString x);
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlString x);
static member op_Explicit : System.Data.SqlTypes.SqlString -> System.Data.SqlTypes.SqlBoolean
Public Shared Narrowing Operator CType (x As SqlString) As SqlBoolean
参数
要转换为SqlBoolean结构的 ASqlString。
返回
一个新 SqlByte 结构,其值等于 Value 参数的属性 SqlBoolean 。
注解
此运算符的等效方法为 SqlString.ToSqlBoolean()
另请参阅
适用于
Explicit(SqlSingle to SqlBoolean)
将 SqlSingle 参数转换为 SqlBoolean 结构。
public:
static explicit operator System::Data::SqlTypes::SqlBoolean(System::Data::SqlTypes::SqlSingle x);
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlSingle x);
static member op_Explicit : System.Data.SqlTypes.SqlSingle -> System.Data.SqlTypes.SqlBoolean
Public Shared Narrowing Operator CType (x As SqlSingle) As SqlBoolean
参数
要转换为SqlBoolean结构的 ASqlSingle。
返回
一个新 SqlBoolean 结构,其值等于 Value 参数的属性 SqlSingle 。
注解
此运算符的等效方法为 SqlSingle.ToSqlBoolean()
另请参阅
适用于
Explicit(SqlMoney to SqlBoolean)
将 SqlMoney 参数转换为 SqlBoolean 结构。
public:
static explicit operator System::Data::SqlTypes::SqlBoolean(System::Data::SqlTypes::SqlMoney x);
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlMoney x);
static member op_Explicit : System.Data.SqlTypes.SqlMoney -> System.Data.SqlTypes.SqlBoolean
Public Shared Narrowing Operator CType (x As SqlMoney) As SqlBoolean
参数
- x
- SqlMoney
要转换为SqlBoolean结构的 ASqlMoney。
返回
一个新 SqlByte 结构,其值等于 Value 参数的属性 SqlMoney 。
注解
此运算符的等效方法为 SqlMoney.ToSqlBoolean()
另请参阅
适用于
Explicit(SqlInt32 to SqlBoolean)
将 SqlInt32 参数转换为 SqlBoolean 结构。
public:
static explicit operator System::Data::SqlTypes::SqlBoolean(System::Data::SqlTypes::SqlInt32 x);
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlInt32 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt32 -> System.Data.SqlTypes.SqlBoolean
Public Shared Narrowing Operator CType (x As SqlInt32) As SqlBoolean
参数
- x
- SqlInt32
要转换为SqlBoolean结构的 ASqlInt32。
返回
一个新 SqlBoolean 结构,其值等于 Value 参数的属性 SqlInt32 。
注解
此运算符 SqlInt32.ToSqlBoolean()的等效方法是 。
另请参阅
适用于
Explicit(SqlInt64 to SqlBoolean)
将 SqlInt64 参数转换为 SqlBoolean 结构。
public:
static explicit operator System::Data::SqlTypes::SqlBoolean(System::Data::SqlTypes::SqlInt64 x);
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlInt64 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt64 -> System.Data.SqlTypes.SqlBoolean
Public Shared Narrowing Operator CType (x As SqlInt64) As SqlBoolean
参数
- x
- SqlInt64
要转换为SqlBoolean结构的 ASqlInt64。
返回
一个新 SqlBoolean 结构,其值等于 Value 参数的属性 SqlInt64 。
注解
此运算符的等效方法为 SqlInt64.ToSqlBoolean()
另请参阅
适用于
Explicit(SqlDouble to SqlBoolean)
将 SqlDouble 参数转换为 SqlBoolean 结构。
public:
static explicit operator System::Data::SqlTypes::SqlBoolean(System::Data::SqlTypes::SqlDouble x);
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlDouble x);
static member op_Explicit : System.Data.SqlTypes.SqlDouble -> System.Data.SqlTypes.SqlBoolean
Public Shared Narrowing Operator CType (x As SqlDouble) As SqlBoolean
参数
要转换为SqlBoolean结构的 ASqlDouble。
返回
一个新 SqlBoolean 结构,其值等于 Value 参数的属性 SqlDouble 。
注解
此运算符的等效方法为 SqlDouble.ToSqlBoolean()
另请参阅
适用于
Explicit(SqlInt16 to SqlBoolean)
将 SqlInt16 参数转换为 SqlBoolean 结构。
public:
static explicit operator System::Data::SqlTypes::SqlBoolean(System::Data::SqlTypes::SqlInt16 x);
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlInt16 x);
static member op_Explicit : System.Data.SqlTypes.SqlInt16 -> System.Data.SqlTypes.SqlBoolean
Public Shared Narrowing Operator CType (x As SqlInt16) As SqlBoolean
参数
- x
- SqlInt16
要转换为SqlBoolean结构的 ASqlInt16。
返回
一个新 SqlBoolean 结构,其值等于 Value 参数的属性 SqlInt16 。
注解
此运算符的等效方法为 SqlInt16.ToSqlBoolean()
另请参阅
适用于
Explicit(SqlDecimal to SqlBoolean)
将 SqlDecimal 参数转换为 SqlBoolean 结构。
public:
static explicit operator System::Data::SqlTypes::SqlBoolean(System::Data::SqlTypes::SqlDecimal x);
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlDecimal x);
static member op_Explicit : System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlBoolean
Public Shared Narrowing Operator CType (x As SqlDecimal) As SqlBoolean
参数
要转换为SqlBoolean结构的 ASqlDecimal。
返回
一个新 SqlByte 结构,其值等于 Value 参数的属性 SqlDecimal 。
注解
此运算符的等效方法为 SqlDecimal.ToSqlBoolean()
另请参阅
适用于
Explicit(SqlByte to SqlBoolean)
将 SqlByte 参数转换为 SqlBoolean 结构。
public:
static explicit operator System::Data::SqlTypes::SqlBoolean(System::Data::SqlTypes::SqlByte x);
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlByte x);
static member op_Explicit : System.Data.SqlTypes.SqlByte -> System.Data.SqlTypes.SqlBoolean
Public Shared Narrowing Operator CType (x As SqlByte) As SqlBoolean
参数
- x
- SqlByte
要转换为SqlBoolean结构的 ASqlByte。
返回
一个新SqlBoolean结构,其值等于ValueSqlByte参数。
注解
此运算符的等效方法为 SqlByte.ToSqlBoolean()
另请参阅
适用于
Explicit(SqlBoolean to Boolean)
将 a SqlBoolean 转换为布尔值。
public:
static explicit operator bool(System::Data::SqlTypes::SqlBoolean x);
public static explicit operator bool(System.Data.SqlTypes.SqlBoolean x);
static member op_Explicit : System.Data.SqlTypes.SqlBoolean -> bool
Public Shared Narrowing Operator CType (x As SqlBoolean) As Boolean
参数
要转换的 A SqlBoolean 。
返回
一个布尔值,设置为 Value .SqlBoolean