Represents a Boolean value.
<SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public Structure Boolean _ Implements IComparable, IConvertible, IComparable(Of Boolean), _ IEquatable(Of Boolean)
[SerializableAttribute] [ComVisibleAttribute(true)] public struct Boolean : IComparable, IConvertible, IComparable<bool>, IEquatable<bool>
[SerializableAttribute] [ComVisibleAttribute(true)] public value class Boolean : IComparable, IConvertible, IComparable<bool>, IEquatable<bool>
[<Sealed>] [<SerializableAttribute>] [<ComVisibleAttribute(true)>] type Boolean = struct interface IComparable interface IConvertible interface IComparable<bool> interface IEquatable<bool> end
The Boolean type exposes the following members.
Instances of this type have values of either true or false.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
All members of this type are thread safe. Members that appear to modify instance state actually return a new instance initialized with the new value. As with any other type, reading and writing to a shared variable that contains an instance of this type must be protected by a lock to guarantee thread safety.