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 中以零起始的索引,即開始複製的位置。

例外狀況

arraynull

arrayLength 屬性小於 Count + index

適用於