<PackageReference Include="System.Data.SqlClient" Version="4.7.0-preview.19073.11" />

SqlBoolean

public struct SqlBoolean : INullable, IComparable
Represents an integer value that is either 1 or 0 to be stored in or retrieved from a database.
public static readonly SqlBoolean False

Represents a false value that can be assigned to the Value property of an instance of the SqlBoolean structure.

public static readonly SqlBoolean Null

Represents DBNull that can be assigned to this instance of the SqlBoolean structure.

public static readonly SqlBoolean One

Represents a one value that can be assigned to the ByteValue property of an instance of the SqlBoolean structure.

public static readonly SqlBoolean True

Represents a true value that can be assigned to the Value property of an instance of the SqlBoolean structure.

public static readonly SqlBoolean Zero

Represents a zero value that can be assigned to the ByteValue property of an instance of the SqlBoolean structure.

public byte ByteValue { get; }

Gets the value of the SqlBoolean structure as a byte.

public bool IsFalse { get; }

Indicates whether the current Value is False.

public bool IsNull { get; }

Indicates whether this SqlBoolean structure is null.

public bool IsTrue { get; }

Indicates whether the current Value is True.

public bool Value { get; }

Gets the SqlBoolean structure&#39;s value. This property is read-only.

public SqlBoolean(bool value)

Initializes a new instance of the SqlBoolean structure using the supplied Boolean value.

public SqlBoolean(int value)

Initializes a new instance of the SqlBoolean structure using the specified integer value.

public static SqlBoolean And(SqlBoolean x, SqlBoolean y)

Computes the bitwise AND operation of two specified SqlBoolean structures.

public static SqlBoolean Equals(SqlBoolean x, SqlBoolean y)

Compares two SqlBoolean structures to determine whether they are equal.

Compares two instances of SqlBoolean to determine whether the first is greater than the second.

Compares two instances of SqlBoolean to determine whether the first is greater than or equal to the second.

Compares two instances of SqlBoolean to determine whether the first is less than the second.

Compares two instances of SqlBoolean to determine whether the first is less than or equal to the second.

Compares two instances of SqlBoolean for equality.

Performs a one&#39;s complement operation on the supplied SqlBoolean structures.

Computes the bitwise AND operation of two specified SqlBoolean structures.

Computes the bitwise OR of its operands.

Compares two instances of SqlBoolean for equality.

Performs a bitwise exclusive-OR (XOR) operation on the supplied parameters.

public static bool op_Explicit(SqlBoolean x)

Converts a SqlBoolean to a Boolean.

public static SqlBoolean op_Explicit(SqlByte x)

Converts the SqlByte parameter to a SqlBoolean structure.

Converts the SqlDecimal parameter to a SqlBoolean structure.

public static SqlBoolean op_Explicit(SqlDouble x)

Converts the SqlDouble parameter to a SqlBoolean structure.

public static SqlBoolean op_Explicit(SqlInt16 x)

Converts the SqlInt16 parameter to a SqlBoolean structure.

public static SqlBoolean op_Explicit(SqlInt32 x)

Converts the SqlInt32 parameter to a SqlBoolean structure.

public static SqlBoolean op_Explicit(SqlInt64 x)

Converts the SqlInt64 parameter to a SqlBoolean structure.

public static SqlBoolean op_Explicit(SqlMoney x)

Converts the SqlMoney parameter to a SqlBoolean structure.

public static SqlBoolean op_Explicit(SqlSingle x)

Converts the SqlSingle parameter to a SqlBoolean structure.

public static SqlBoolean op_Explicit(SqlString x)

Converts the SqlString parameter to a SqlBoolean structure.

public static bool op_False(SqlBoolean x)

The false operator can be used to test the Value of the SqlBoolean to determine whether it is false.

Compares two SqlBoolean structures to determine whether the first is greater than the second.

Compares two SqlBoolean structures to determine whether the first is greater than or equal to the second.

public static SqlBoolean op_Implicit(bool x)

Converts the supplied byte value to a SqlBoolean.

Compares two instances of SqlBoolean to determine whether they are not equal.

Compares two instances of SqlBoolean to determine whether the first is less than the second.

Compares two instances of SqlBoolean to determine whether the first is less than or equal to the second.

Performs a NOT operation on a SqlBoolean.

Performs a one&#39;s complement operation on the supplied SqlBoolean structures.

public static bool op_True(SqlBoolean x)

The true operator can be used to test the Value of the SqlBoolean to determine whether it is true.

public static SqlBoolean Or(SqlBoolean x, SqlBoolean y)

Performs a bitwise OR operation on the two specified SqlBoolean structures.

public static SqlBoolean Parse(string s)

Converts the specified String representation of a logical value to its SqlBoolean equivalent.

public static SqlBoolean Xor(SqlBoolean x, SqlBoolean y)

Performs a bitwise exclusive-OR operation on the supplied parameters.

public int CompareTo(SqlBoolean value)

Compares this SqlBoolean object to the supplied SqlBoolean object and returns an indication of their relative values.

public int CompareTo(object value)

Compares this SqlBoolean structure to a specified object and returns an indication of their relative values.

public SqlByte ToSqlByte()

Converts this SqlBoolean structure to SqlByte.

Converts this SqlBoolean structure to SqlDecimal.

Converts this SqlBoolean structure to SqlDouble.

Converts this SqlBoolean structure to SqlInt16.

Converts this SqlBoolean structure to SqlInt32.

Converts this SqlBoolean structure to SqlInt64.

Converts this SqlBoolean structure to SqlMoney.

Converts this SqlBoolean structure to SqlSingle.

Converts this SqlBoolean structure to SqlString.