SqlBoolean.True(SqlBoolean) 运算符

定义

可以使用“真”运算符来测试 ValueSqlBoolean 以确定它是否为真。The true operator can be used to test the Value of the SqlBoolean to determine whether it is true.

public:
 static bool operator true(System::Data::SqlTypes::SqlBoolean x);
public static bool operator true (System.Data.SqlTypes.SqlBoolean x);
static member op_True : System.Data.SqlTypes.SqlBoolean -> bool
Public Shared Operator IsTrue (x As SqlBoolean) As Boolean

参数

x
SqlBoolean

要测试的 SqlBoolean 结构。The SqlBoolean structure to be tested.

返回

Boolean

如果所提供的参数 SqlBooleantrue,则返回 true;否则,返回 falsetrue if the supplied parameter is SqlBoolean is true; otherwise, false.

注解

此运算符的等效方法为 SqlBoolean.TrueThe equivalent method for this operator is SqlBoolean.True.

适用于