Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a SqlBoolean to a specified structure.
Explicit(SqlString to SqlBoolean) |
Converts the SqlString parameter to a SqlBoolean structure. |
Explicit(SqlSingle to SqlBoolean) |
Converts the SqlSingle parameter to a SqlBoolean structure. |
Explicit(SqlMoney to SqlBoolean) |
Converts the SqlMoney parameter to a SqlBoolean structure. |
Explicit(SqlInt64 to SqlBoolean) |
Converts the SqlInt64 parameter to a SqlBoolean structure. |
Explicit(SqlInt32 to SqlBoolean) |
Converts the SqlInt32 parameter to a SqlBoolean structure. |
Explicit(SqlDouble to SqlBoolean) |
Converts the SqlDouble parameter to a SqlBoolean structure. |
Explicit(SqlDecimal to SqlBoolean) |
Converts the SqlDecimal parameter to a SqlBoolean structure. |
Explicit(SqlByte to SqlBoolean) |
Converts the SqlByte parameter to a SqlBoolean structure. |
Explicit(SqlBoolean to Boolean) |
Converts a SqlBoolean to a Boolean. |
Explicit(SqlInt16 to SqlBoolean) |
Converts the SqlInt16 parameter to a SqlBoolean structure. |
Converts the SqlString parameter to a SqlBoolean structure.
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
A SqlString to be converted to a SqlBoolean structure.
A new SqlByte structure whose value equals the Value property of the SqlBoolean parameter.
The equivalent method for this operator is SqlString.ToSqlBoolean()
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Converts the SqlSingle parameter to a SqlBoolean structure.
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
A SqlSingle to be converted to a SqlBoolean structure.
A new SqlBoolean structure whose value equals the Value property of the SqlSingle parameter.
The equivalent method for this operator is SqlSingle.ToSqlBoolean()
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Converts the SqlMoney parameter to a SqlBoolean structure.
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
A SqlMoney to be converted to a SqlBoolean structure.
A new SqlByte structure whose value equals the Value property of the SqlMoney parameter.
The equivalent method for this operator is SqlMoney.ToSqlBoolean()
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Converts the SqlInt64 parameter to a SqlBoolean structure.
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
A SqlInt64 to be converted to a SqlBoolean structure.
A new SqlBoolean structure whose value equals the Value property of the SqlInt64 parameter.
The equivalent method for this operator is SqlInt64.ToSqlBoolean()
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Converts the SqlInt32 parameter to a SqlBoolean structure.
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
A SqlInt32 to be converted to a SqlBoolean structure.
A new SqlBoolean structure whose value equals the Value property of the SqlInt32 parameter.
The equivalent method for this operator is SqlInt32.ToSqlBoolean().
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Converts the SqlDouble parameter to a SqlBoolean structure.
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
A SqlDouble to be converted to a SqlBoolean structure.
A new SqlBoolean structure whose value equals the Value property of the SqlDouble parameter.
The equivalent method for this operator is SqlDouble.ToSqlBoolean()
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Converts the SqlDecimal parameter to a SqlBoolean structure.
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
A SqlDecimal to be converted to a SqlBoolean structure.
A new SqlByte structure whose value equals the Value property of the SqlDecimal parameter.
The equivalent method for this operator is SqlDecimal.ToSqlBoolean()
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Converts the SqlByte parameter to a SqlBoolean structure.
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
A SqlByte to be converted to a SqlBoolean structure.
A new SqlBoolean structure whose value equals the Value of the SqlByte parameter.
The equivalent method for this operator is SqlByte.ToSqlBoolean()
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Converts a SqlBoolean to a Boolean.
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 to convert.
A Boolean set to the Value of the SqlBoolean.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Converts the SqlInt16 parameter to a SqlBoolean structure.
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
A SqlInt16 to be converted to a SqlBoolean structure.
A new SqlBoolean structure whose value equals the Value property of the SqlInt16 parameter.
The equivalent method for this operator is SqlInt16.ToSqlBoolean()
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in