The
ToBoolean method interprets the contents of the
Value object as a
Boolean value.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in
microsoft.metadirectoryservicesex.dll)
Usage
Visual Basic |
Dim instance As Value
Dim returnValue As Boolean
returnValue = instance.ToBoolean
|
Syntax
Visual Basic |
Public MustOverride Function ToBoolean As Boolean
|
C# |
public abstract bool ToBoolean ()
|
C++ |
public:
virtual bool ToBoolean () abstract
|
J# |
public abstract boolean ToBoolean ()
|
JScript |
public abstract function ToBoolean () : boolean
|
Return Value
Returns a Boolean interpretation of the contents of the
Value object.
Exceptions
Exception type |
Condition |
System.InvalidOperationException
|
The value cannot be converted to the specified data
type.
|
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also