DsmlResponseDocument.CopyTo(DirectoryResponse[], Int32) Method

Definition

The CopyTo(DirectoryResponse[], Int32) method copies the entire collection to a one-dimensional array, starting at the specified index of the target array.

C#
public void CopyTo(System.DirectoryServices.Protocols.DirectoryResponse[] value, int i);

Parameters

value
DirectoryResponse[]

A one-dimensional array that is the destination of the elements copied from the DsmlRequestDocument object.

i
Int32

The zero-based index of value where copying begins.

Exceptions

value is a null reference (Nothing in Visual Basic).

i is less than zero.

value is multidimensional.

-or-

The number of elements in the source DsmlRequestDocument is greater than the available space from i to the end of the destination value.

The type of the source DsmlRequestDocument cannot be cast automatically to the type of the destination value.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1