asp.net.ph

Boolean.Parse Method

System Namespace   Boolean Class


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

[ VB ]
<Serializable>
Public Shared Function Parse ( _
   ByVal value As String _
) As Boolean

[ C# ]
[Serializable]
public static bool Parse (
   string value
);

[ C++ ]
[Serializable]
public: static bool Parse (
   String* value
);

[JScript ]
public Serializable
static function Parse (
   value : String
) : Boolean;

Parameters

value
A string containing the value to convert.

Return Value

true if value is equivalent to TrueString; otherwise, false.

Exceptions


Exception Type Condition
ArgumentNullException value is a null reference ( Nothing in Visual Basic ).
FormatException value is not equivalent to TrueString or FalseString.

Remarks

The value parameter, optionally preceded or trailed by white space, must contain either TrueString or FalseString; otherwise, an exception is thrown. The comparison is case-insensitive.

See Also

Boolean Members   ArgumentNullException   FormatException   String   TrueString   FalseString Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph