SqlBoolean.True(SqlBoolean) 运算符
定义
可以使用“真”运算符来测试 Value 的 SqlBoolean 以确定它是否为真。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
参数
要测试的 SqlBoolean 结构。The SqlBoolean structure to be tested.
返回
如果所提供的参数 SqlBoolean 为 true,则返回 true;否则,返回 false。true if the supplied parameter is SqlBoolean is true; otherwise, false.
注解
此运算符的等效方法为 SqlBoolean.True 。The equivalent method for this operator is SqlBoolean.True.