This documentation is archived and is not being maintained.

Boolean Structure

Represents a Boolean value.

For a list of all members of this type, see Boolean Members.


[Visual Basic]
Public Structure Boolean
   Implements IComparable, IConvertible
public struct Boolean : IComparable, IConvertible
public __value struct Boolean : public IComparable, IConvertible

[JScript] In JScript, you can use the structures in the .NET Framework, but you cannot define your own.

Thread Safety

This type is safe for multithreaded operations.


Instances of this type have values of either true or false.

This value type implements interfaces IConvertible and IComparable. Use the Convert class for conversions instead of this type's explicit interface member implementation of IConvertible.


Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

Boolean Members | System Namespace