Condividi tramite


GraphPathSerializationDictionary.CopyTo 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 <System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ array, int arrayIndex);
public void CopyTo (System.Collections.Generic.KeyValuePair<string,string>[] array, int arrayIndex);
abstract member CopyTo : System.Collections.Generic.KeyValuePair<string, string>[] * int -> unit
override this.CopyTo : System.Collections.Generic.KeyValuePair<string, string>[] * int -> unit
Public Sub CopyTo (array As KeyValuePair(Of String, String)(), arrayIndex As Integer)

Parameters

array
KeyValuePair<String,String>[]

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