C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Convert Class
Convert Methods
ToBoolean Method
ToBoolean Method (Boolean)
ToBoolean Method (Byte)
ToBoolean Method (Char)
ToBoolean Method (DateTime)
ToBoolean Method (Decimal)
ToBoolean Method (Double)
ToBoolean Method (Int16)
ToBoolean Method (Int32)
ToBoolean Method (Int64)
ToBoolean Method (Object)
ToBoolean Method (SByte)
ToBoolean Method (Single)
ToBoolean Method (String)
ToBoolean Method (UInt16)
ToBoolean Method (UInt32)
ToBoolean Method (UInt64)
ToBoolean Method (Object, IFormatProvider)
ToBoolean Method (String, IFormatProvider)
Convert
ToBoolean Method (String)
Converts the specified string representation of a logical value to its Boolean equivalent.
Namespace:
System
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
static
bool
ToBoolean
(
string
value
)
Parameters
value
Type:
System
String
A string that contains the value of either
TrueString
or
FalseString
.
Return Value
Type:
Boolean
true if
value
equals
TrueString
, or false if
value
equals
FalseString
or null.
Exceptions
Exception
Condition
FormatException
value
is not equal to
TrueString
or
FalseString
.
See Also
Reference
Convert Class
ToBoolean Overload
System Namespace