Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ToBoolean Method

IConvertible.ToBoolean Method

Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.

The IConvertible type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
Function ToBoolean( _
   ByVal provider As IFormatProvider _
) As Boolean
bool ToBoolean(
   IFormatProvider provider
bool ToBoolean(
   IFormatProvider* provider
function ToBoolean(
   provider : IFormatProvider
) : Boolean;


An IFormatProvider interface implementation that supplies culture-specific formatting information.

Return Value

A Boolean value equivalent to the value of this instance.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IConvertible Interface | IConvertible Members | System Namespace

© 2015 Microsoft