Editar

Partilhar via


ManagementObjectCollection.CopyTo Method

Definition

Copies the collection to an array.

Overloads

CopyTo(Array, Int32)

Copies the collection to an array.

CopyTo(ManagementBaseObject[], Int32)

Copies the items in the collection to a ManagementBaseObject array.

CopyTo(Array, Int32)

Source:
ManagementObjectCollection.cs
Source:
ManagementObjectCollection.cs
Source:
ManagementObjectCollection.cs

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)

Parameters

array
Array

An array to copy to.

index
Int32

The index to start from.

Implements

Remarks

.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.

See also

Applies to

CopyTo(ManagementBaseObject[], Int32)

Source:
ManagementObjectCollection.cs
Source:
ManagementObjectCollection.cs
Source:
ManagementObjectCollection.cs

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)

Parameters

objectCollection
ManagementBaseObject[]

The target array.

index
Int32

The index to start from.

Remarks

.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.

Applies to