Boolean Structure
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a Boolean value.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Structure Boolean
[SerializableAttribute]
public struct Boolean
[SerializableAttribute]
public value class Boolean
[<Sealed>]
[<SerializableAttribute>]
type Boolean = struct end
JScript supports the use of structures, but not the declaration of new ones.
The Boolean type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Converts the value of this instance to its equivalent string representation (either "True" or "False"). (Overrides Object. . :: . .ToString() () () ().) |
Top
Fields
Name | Description | |
---|---|---|
FalseString | Represents the Boolean value false as a string. This field is read-only. | |
TrueString | Represents the Boolean value true as a string. This field is read-only. |
Top
Remarks
Instances of this type have values of either true or false.
Thread Safety
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.