Compartilhar via


SnapInImageList.CopyTo Method (Array, Int32)

 

Copies the elements of the ICollection to an array, starting at a particular array index.

Namespace:   Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

Syntax

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

Parameters

  • array
    Type: System.Array

    The one-dimensional array that is the destination of the elements that are copied from ICollection. The array must have zero-based indexing.

  • index
    Type: System.Int32

    The zero-based index in array at which copying begins.

Implements

ICollection.CopyTo(Array, Int32)

Exceptions

Exception Condition
ArgumentException

Index out of range, or destination to small.

ArgumentNullException

The image list is null.

See Also

CopyTo Overload
SnapInImageList Class
Microsoft.ManagementConsole Namespace

Return to top