ManagementObjectCollection.CopyTo 方法

定義

將集合複製到陣列。Copies the collection to an array.

多載

CopyTo(Array, Int32)

將集合複製到陣列。Copies the collection to an array.

CopyTo(ManagementBaseObject[], Int32)

將集合中的項目複製至 ManagementBaseObject 陣列。Copies the items in the collection to a ManagementBaseObject array.

CopyTo(Array, Int32)

將集合複製到陣列。Copies the collection to an array.

public:
 virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)

參數

array
Array

要複製的目的陣列。An array to copy to.

index
Int32

做為開頭的索引。The index to start from.

實作

備註

.NET Framework 安全性.NET Framework Security

完全信任立即呼叫者。Full trust for the immediate caller. 這個成員無法供部分信任的程式碼使用。This member cannot be used by partially trusted code. 如需詳細資訊,請參閱 使用來自部分信任程式碼的程式庫For more information, see Using Libraries from Partially Trusted Code.

另請參閱

適用於

CopyTo(ManagementBaseObject[], Int32)

將集合中的項目複製至 ManagementBaseObject 陣列。Copies the items in the collection to a ManagementBaseObject array.

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

參數

objectCollection
ManagementBaseObject[]

目標陣列。The target array.

index
Int32

做為開頭的索引。The index to start from.

備註

.NET Framework 安全性.NET Framework Security

完全信任立即呼叫者。Full trust for the immediate caller. 這個成員無法供部分信任的程式碼使用。This member cannot be used by partially trusted code. 如需詳細資訊,請參閱 使用來自部分信任程式碼的程式庫For more information, see Using Libraries from Partially Trusted Code.

適用於