ManagementObjectCollection.CopyTo ManagementObjectCollection.CopyTo ManagementObjectCollection.CopyTo ManagementObjectCollection.CopyTo Method

Definition

Copies the collection to an array.

Overloads

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

Copies the collection to an array.

CopyTo(ManagementBaseObject[], Int32) CopyTo(ManagementBaseObject[], Int32) CopyTo(ManagementBaseObject[], Int32) CopyTo(ManagementBaseObject[], Int32)

Copies the items in the collection to a ManagementBaseObject array.

CopyTo(Array, Int32) CopyTo(Array, Int32) 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

Parameters

array
Array Array Array Array

An array to copy to.

index
Int32 Int32 Int32 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

CopyTo(ManagementBaseObject[], Int32) CopyTo(ManagementBaseObject[], Int32) CopyTo(ManagementBaseObject[], Int32) CopyTo(ManagementBaseObject[], Int32)

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