語言

PropertyInformationCollection.CopyTo(PropertyInformation[], Int32) 方法

定義

從目標陣列指定的索引開始,將整個 PropertyInformationCollection 集合複製到相容的一維 Array。

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

參數

array
PropertyInformation[]

一個一維 Array ,即從集合複製 PropertyInformationCollection 元素的目的地。 必須 Array 有零基索引。

index
Int32

複製開始的零基索引 array 。

例外狀況

array 是 null。

Length的array性質小Count + index於 。

適用於