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

Visual Basic
Dim instance As Value
Dim returnValue As Byte()

returnValue = instance.ToBinary

Syntax

Visual Basic
Public MustOverride Function ToBinary As Byte()
C#
public abstract byte[] ToBinary ()
C++
public:
virtual array<unsigned char>^ ToBinary () abstract
J#
public abstract byte[] ToBinary ()
JScript
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