Value.ToBoolean Method
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
'Usage
Dim instance As Value
Dim returnValue As Boolean
returnValue = instance.ToBoolean
Syntax
'Declaration
Public MustOverride Function ToBoolean As Boolean
public abstract bool ToBoolean ()
public:
virtual bool ToBoolean () abstract
public abstract boolean ToBoolean ()
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
Reference
Value Class
Value Members
Microsoft.MetadirectoryServices Namespace