CopyTo Method
Collapse the table of content
Expand the table of content

DsmlResponseDocument.CopyTo Method (DirectoryResponse[], Int32)

 

The CopyTo method copies the entire collection to a one-dimensional array, starting at the specified index of the target array.

Namespace:   System.DirectoryServices.Protocols
Assembly:  System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)

public void CopyTo(
	DirectoryResponse[] value,
	int i
)

Parameters

value
Type: System.DirectoryServices.Protocols.DirectoryResponse[]

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

i
Type: System.Int32

The zero-based index of value where copying begins.

Exception Condition
ArgumentNullException

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

ArgumentOutOfRangeException

i is less than zero.

ArgumentException

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.

InvalidCastException

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft