Edit

Share via


SearchResultCollection.CopyTo(SearchResult[], Int32) Method

Definition

Copies all SearchResult objects in this collection to the specific array, starting at the specified index in the target array.

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

Parameters

results
SearchResult[]

The array of SearchResult objects that receives the elements of this collection.

index
Int32

The zero-based index in results where this method starts copying this collection.

Applies to