Name
Boolean
Synopsis
This is a simple value type that contains either true
or false
. When converting to or from a string or
comparing with a string, the TrueString
and FalseString
fields are used
(these return True
and False
).
This type is available in
VB.NET through the Boolean
alias.
Public Structure Boolean : Implements IComparable, IConvertible ' Public Shared Fields Public Shared ReadOnly FalseString As String // =False Public Shared ReadOnly TrueString As String // =True ' Public Shared Methods Public Shared Function Parse( ByVal value As String) As Boolean ' Public Instance Methods Public Function CompareTo( ByVal obj As Object) As Integer Implements IComparable.CompareTo Overrides Public Function Equals( ByVal obj As Object) As Boolean Overrides Public Function GetHashCode() As Integer Public Function GetTypeCode( ) As TypeCode Implements IConvertible.GetTypeCode Overrides Public Function ToString() As String Public Function ToString( ByVal provider As IFormatProvider) As String Implements IConvertible.ToString End Structure
Hierarchy
Object→ValueType→ Boolean(IComparable
, IConvertible)
Returned By
Multiple types
Passed To
Multiple types
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.