Boolean..::..Parse Method
Converts the specified string representation of a logical value to its Boolean equivalent, or throws an exception if the string is not equal to the value of TrueString or FalseString.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static bool Parse( string value )
<TemplateAttribute> _ Public Shared Function Parse ( _ value As String _ ) As Boolean
[TemplateAttribute] public: static bool^ Parse( String^ value )
Parameters
- value
- Type: System..::..String
A string containing the value to convert.
Return Value
true if value is equal to the value of the TrueString field; false if value is equal to the value of the FalseString field.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | value is null. |
System..::..FormatException | value is not equal to the value of the TrueString or FalseString field. |