PersonalizationStateInfoCollection.CopyTo(PersonalizationStateInfo[], Int32) 方法

定义

从指定位置开始,将 PersonalizationStateInfoCollection 集合中的元素复制到 PersonalizationStateInfo 数组。Copies the elements of the PersonalizationStateInfoCollection collection into a PersonalizationStateInfo array, starting at the specified position.

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

参数

array
PersonalizationStateInfo[]

要向其中复制集合中的元素的数组。The array the elements in the collection are copied into.

index
Int32

开始复制操作的位置。The location at which to start the copy operation.

注解

如果要创建数组,请使用此方法 PersonalizationStateInfoUse this method if you want to create a PersonalizationStateInfo array. 此方法只调用 ArrayList.CopyTo 方法并传递 arrayindex 参数。This method simply calls the ArrayList.CopyTo method and passes the array and index parameters.

适用于

另请参阅