Share via


ValueCollection.ToByteArrays Method

The ToByteArrays method converts the ValueCollection into an array of Byte arrays.

Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)

Usage

'Usage
Dim instance As ValueCollection
Dim returnValue As Byte()()

returnValue = instance.ToByteArrays

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Function ToByteArrays As Byte()()
[CLSCompliantAttribute(false)] 
public byte[][] ToByteArrays ()
[CLSCompliantAttribute(false)] 
public:
array<array<unsigned char>^>^ ToByteArrays ()
/** @attribute CLSCompliantAttribute(false) */ 
public byte[][] ToByteArrays ()
CLSCompliantAttribute(false) 
public function ToByteArrays () : byte[][]

Return Value

Returns an array of Byte arrays that contain the binary contents of the ValueCollection. Each member of this array is an array of Bytes that contains the binary representation of each element of the ValueCollection.

Exceptions

Exception type Condition
System.InvalidOperationException

The value of the val parameter cannot be converted to the data type of the collection.

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

ValueCollection Class
ValueCollection Members
Microsoft.MetadirectoryServices Namespace
Value.ToBinary Method