asp.net.ph

Convert.ToBoolean Method ( String )

System Namespace   Convert Class


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

[ VB ]
Overloads Public Shared Function ToBoolean ( _
   ByVal value As String _
) As Boolean

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

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

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

Parameters

value
A String that contains the value of either TrueString or FalseString.

Return Value

true if value equals TrueString, or false if value equals FalseString.

Exceptions


Exception Type Condition
ArgumentNullException value is a null reference.
FormatException value is not equal to TrueString or FalseString

See Also

Convert Members   Convert.ToBoolean Overload List   String 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