Editare

Partajați prin


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.

public:
 void CopyTo(cli::array <System::DirectoryServices::Protocols::DirectoryResponse ^> ^ value, int i);
public void CopyTo (System.DirectoryServices.Protocols.DirectoryResponse[] value, int i);
member this.CopyTo : System.DirectoryServices.Protocols.DirectoryResponse[] * int -> unit
Public Sub CopyTo (value As DirectoryResponse(), i As Integer)

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