Bridge

Boolean..::..TryParse Method

Tries to convert the specified string representation of a logical value to its Boolean equivalent. A return value indicates whether the conversion succeeded or failed.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public static bool TryParse(
	string value,
	out bool result
)
<TemplateAttribute> _
Public Shared Function TryParse ( _
	value As String, _
	<OutAttribute> ByRef result As Boolean _
) As Boolean
[TemplateAttribute]
public:
static bool^ TryParse(
	String^ value, 
	[OutAttribute] bool^% result
)

Parameters

value
Type: System..::..String
A string containing the value to convert.
result
Type: System..::..Boolean%
When this method returns, if the conversion succeeded, contains true if value is equal to TrueString or false if value is equal to FalseString. If the conversion failed, contains false. The conversion fails if value is null or is not equal to the value of either the TrueString or FalseString field.

Return Value

true if value was converted successfully; otherwise, false.