Share via


GraphLinkCollection.CopyTo(GraphLink[], Int32) Method

Definition

Copies the elements of the System.Collections.Generic.ICollection to an System.Array, starting at a particular System.Array index.

public:
 virtual void CopyTo(cli::array <Microsoft::VisualStudio::GraphModel::GraphLink ^> ^ array, int arrayIndex);
public void CopyTo (Microsoft.VisualStudio.GraphModel.GraphLink[] array, int arrayIndex);
abstract member CopyTo : Microsoft.VisualStudio.GraphModel.GraphLink[] * int -> unit
override this.CopyTo : Microsoft.VisualStudio.GraphModel.GraphLink[] * int -> unit
Public Sub CopyTo (array As GraphLink(), arrayIndex As Integer)

Parameters

array
GraphLink[]

The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection. The System.Array must have zero-based indexing.

arrayIndex
Int32

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

Implements

Exceptions

array is null

arrayIndex is less than 0.

array is multidimensional.-or-The number of elements in the source System.Collections.Generic.ICollection is greater than the available space from arrayIndex to the end of the destination array.-or-Type T cannot be cast automatically to the type of the destination array.

Applies to