NAnt SDK Documentation - v0.92

BooleanConversionFunctions.Parse Method 

Converts the specified string representation of a logical value to its Boolean equivalent.

[Visual Basic]
<Function(Name:="parse")>
Public Shared Function Parse( _
   ByVal s As String _
) As Boolean
[C#]
[Function(Name="parse")]
public static bool Parse(
   string s
);

Parameters

s
A string containing the value to convert.

Return Value

true if s is equivalent to "True"; otherwise, false.

Exceptions

Exception Type Condition
FormatException s is not equivalent to TrueString or FalseString.

See Also

BooleanConversionFunctions Class | NAnt.Core.Functions Namespace