語言

ReplicationConnectionCollection.CopyTo(ReplicationConnection[], Int32) 方法

定義

將此集合中的所有 ReplicationConnection 物件從目標陣列指定的索引開始複製到指定陣列。

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

參數

connections
ReplicationConnection[]

接收此集合元素的物件陣列 ReplicationConnection 。

index
Int32

此方法開始複製此集合的零基索引 connections 。

例外狀況

呼叫底層目錄服務時會發生錯誤。

根據來源集合大小及 index 指定值,目的陣列不夠大。

參數 connections 為 null。

指定的 不 index 在目的陣列的範圍之外。

適用於

另請參閱