System.Data.SqlTypes.SqlBoolean Structure

Represents an integer value that is either 1 or 0 to be stored in or retrieved from a database.

See Also: SqlBoolean Members


public struct SqlBoolean : INullable, IComparable, System.Xml.Serialization.IXmlSerializable


Any non-zero value is interpreted as 1.

The key difference between a System.Data.SqlTypes.SqlBoolean structure and a standard Boolean value is that, where a standard Boolean has two possible values, true and false, a System.Data.SqlTypes.SqlBoolean structure has three possible values, SqlBoolean.True, SqlBoolean.False, or SqlBoolean.Null.


Namespace: System.Data.SqlTypes
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,