SearchResultCollection.CopyTo(SearchResult[], Int32) 方法

定義

從目標陣列中的指定索引開始,將這個集合中的所有 SearchResult 物件複製到特定陣列。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)

參數

results
SearchResult[]

接收此集合項目的 SearchResult 物件陣列。The array of SearchResult objects that receives the elements of this collection.

index
Int32

results 中以零起始的索引,這個方法會從此處開始複製這個集合。The zero-based index in results where this method starts copying this collection.

適用於