asp.net.ph

Convert.ToBoolean Method ( String, IFormatProvider )

System Namespace   Convert Class


Converts the specified String representation of a logical value to its Boolean equivalent using the specified culture-specific formatting information.

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

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

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

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

Parameters

value
A string that contains the value of either TrueString or FalseString.
provider
( Reserved ) An IFormatProvider interface implementation that supplies culture-specific formatting information.

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

Remarks

provider is ignored; it does not participate in this operation.

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