Value.ToBinary Method
The ToBinary method interprets the contents of the Value object as an array of bytes.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim instance As Value
Dim returnValue As Byte()
returnValue = instance.ToBinary
Syntax
'Declaration
Public MustOverride Function ToBinary As Byte()
public abstract byte[] ToBinary ()
public:
virtual array<unsigned char>^ ToBinary () abstract
public abstract byte[] ToBinary ()
public abstract function ToBinary () : byte[]
Return Value
Returns an array of bytes that represents 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