Click or drag to resize
BooleanParse Method
Converts the specified string representation of a logical value to its Boolean equivalent, or throws an exception if the string is not equivalent to the value of TrueString or FalseString.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static bool Parse(
	string value
)

Parameters

value
Type: SystemString
A string containing the value to convert.

Return Value

Type: Boolean
true if value is equivalent to the value of the TrueString field; false if value is equivalent to the value of the FalseString field.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
FormatExceptionvalue is not equivalent to the value of the TrueString or FalseString field.
See Also