SqlBoolean Structure
.NET Framework 4.5
Represents an integer value that is either 1 or 0 to be stored in or retrieved from a database.
Namespace: System.Data.SqlTypes
Assembly: System.Data (in System.Data.dll)
The SqlBoolean type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | SqlBoolean(Boolean) | Initializes a new instance of the SqlBoolean structure using the supplied Boolean value. |
![]() ![]() | SqlBoolean(Int32) | Initializes a new instance of the SqlBoolean structure using the specified integer value. |
| Name | Description | |
|---|---|---|
![]() ![]() | ByteValue | Gets the value of the SqlBoolean structure as a byte. |
![]() ![]() | IsFalse | Indicates whether the current Value is False. |
![]() ![]() | IsNull | Indicates whether this SqlBoolean structure is null. |
![]() ![]() | IsTrue | Indicates whether the current Value is True. |
![]() ![]() | Value | Gets the SqlBoolean structure's value. This property is read-only. |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | And | Computes the bitwise AND operation of two specified SqlBoolean structures. |
![]() ![]() | CompareTo(Object) | Compares this SqlBoolean structure to a specified object and returns an indication of their relative values. |
![]() ![]() | CompareTo(SqlBoolean) | Compares this SqlBoolean object to the supplied SqlBoolean object and returns an indication of their relative values. |
![]() ![]() | Equals(Object) | Compares the supplied object parameter to the SqlBoolean. (Overrides ValueType.Equals(Object).) |
![]() ![]() ![]() | Equals(SqlBoolean, SqlBoolean) | Compares two SqlBoolean structures to determine whether they are equal. |
![]() ![]() | GetHashCode | Returns the hash code for this instance. (Overrides ValueType.GetHashCode().) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() ![]() | GetXsdType | Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet. |
![]() ![]() ![]() | GreaterThan | Compares two instances of SqlBoolean to determine whether the first is greater than the second. |
![]() ![]() ![]() | GreaterThanOrEquals | Compares two instances of SqlBoolean to determine whether the first is greater than or equal to the second. |
![]() ![]() ![]() | LessThan | Compares two instances of SqlBoolean to determine whether the first is less than the second. |
![]() ![]() ![]() | LessThanOrEquals | Compares two instances of SqlBoolean to determine whether the first is less than or equal to the second. |
![]() ![]() ![]() | NotEquals | Compares two instances of SqlBoolean for equality. |
![]() ![]() ![]() | OnesComplement | Performs a one's complement operation on the supplied SqlBoolean structures. |
![]() ![]() ![]() | Or | Performs a bitwise OR operation on the two specified SqlBoolean structures. |
![]() ![]() ![]() | Parse | Converts the specified String representation of a logical value to its SqlBoolean equivalent. |
![]() ![]() | ToSqlByte | Converts this SqlBoolean structure to SqlByte. |
![]() ![]() | ToSqlDecimal | Converts this SqlBoolean structure to SqlDecimal. |
![]() ![]() | ToSqlDouble | Converts this SqlBoolean structure to SqlDouble. |
![]() ![]() | ToSqlInt16 | Converts this SqlBoolean structure to SqlInt16. |
![]() ![]() | ToSqlInt32 | Converts this SqlBoolean structure to SqlInt32. |
![]() ![]() | ToSqlInt64 | Converts this SqlBoolean structure to SqlInt64. |
![]() ![]() | ToSqlMoney | Converts this SqlBoolean structure to SqlMoney. |
![]() ![]() | ToSqlSingle | Converts this SqlBoolean structure to SqlSingle. |
![]() ![]() | ToSqlString | Converts this SqlBoolean structure to SqlString. |
![]() ![]() | ToString | Converts this SqlBoolean structure to a string. (Overrides ValueType.ToString().) |
![]() ![]() ![]() | Xor | Performs a bitwise exclusive-OR operation on the supplied parameters. |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | BitwiseAnd | Computes the bitwise AND operation of two specified SqlBoolean structures. |
![]() ![]() ![]() | BitwiseOr | Computes the bitwise OR of its operands. |
![]() ![]() ![]() | Equality | Compares two instances of SqlBoolean for equality. |
![]() ![]() ![]() | ExclusiveOr | Performs a bitwise exclusive-OR (XOR) operation on the supplied parameters. |
![]() ![]() ![]() | Explicit(SqlBoolean to Boolean) | Converts a SqlBoolean to a Boolean. |
![]() ![]() ![]() | Explicit(SqlByte to SqlBoolean) | Converts the SqlByte parameter to a SqlBoolean structure. |
![]() ![]() ![]() | Explicit(SqlDecimal to SqlBoolean) | Converts the SqlDecimal parameter to a SqlBoolean structure. |
![]() ![]() ![]() | Explicit(SqlDouble to SqlBoolean) | Converts the SqlDouble parameter to a SqlBoolean structure. |
![]() ![]() ![]() | Explicit(SqlInt16 to SqlBoolean) | Converts the SqlInt16 parameter to a SqlBoolean structure. |
![]() ![]() ![]() | Explicit(SqlInt32 to SqlBoolean) | Converts the SqlInt32 parameter to a SqlBoolean structure. |
![]() ![]() ![]() | Explicit(SqlInt64 to SqlBoolean) | Converts the SqlInt64 parameter to a SqlBoolean structure. |
![]() ![]() ![]() | Explicit(SqlMoney to SqlBoolean) | Converts the SqlMoney parameter to a SqlBoolean structure. |
![]() ![]() ![]() | Explicit(SqlSingle to SqlBoolean) | Converts the SqlSingle parameter to a SqlBoolean structure. |
![]() ![]() ![]() | Explicit(SqlString to SqlBoolean) | Converts the SqlString parameter to a SqlBoolean structure. |
![]() ![]() ![]() | False | The false operator can be used to test the Value of the SqlBoolean to determine whether it is false. |
![]() ![]() ![]() | GreaterThan | Compares two SqlBoolean structures to determine whether the first is greater than the second. |
![]() ![]() ![]() | GreaterThanOrEqual | Compares two SqlBoolean structures to determine whether the first is greater than or equal to the second. |
![]() ![]() ![]() | Implicit(Boolean to SqlBoolean) | Converts the supplied byte value to a SqlBoolean. |
![]() ![]() ![]() | Inequality | Compares two instances of SqlBoolean to determine whether they are not equal. |
![]() ![]() ![]() | LessThan | Compares two instances of SqlBoolean to determine whether the first is less than the second. |
![]() ![]() ![]() | LessThanOrEqual | Compares two instances of SqlBoolean to determine whether the first is less than or equal to the second. |
![]() ![]() ![]() | LogicalNot | Performs a NOT operation on a SqlBoolean. |
![]() ![]() ![]() | OnesComplement | Performs a one's complement operation on the supplied SqlBoolean structures. |
![]() ![]() ![]() | True | The true operator can be used to test the Value of the SqlBoolean to determine whether it is true. |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | False | Represents a false value that can be assigned to the Value property of an instance of the SqlBoolean structure. |
![]() ![]() ![]() | Null | Represents DBNull that can be assigned to this instance of the SqlBoolean structure. |
![]() ![]() ![]() | One | Represents a one value that can be assigned to the ByteValue property of an instance of the SqlBoolean structure. |
![]() ![]() ![]() | True | Represents a true value that can be assigned to the Value property of an instance of the SqlBoolean structure. |
![]() ![]() ![]() | Zero | Represents a zero value that can be assigned to the ByteValue property of an instance of the SqlBoolean structure. |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | IXmlSerializable.GetSchema | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
![]() ![]() ![]() | IXmlSerializable.ReadXml | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
![]() ![]() ![]() | IXmlSerializable.WriteXml | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
