Share via


ReadOnlyDictionary<TKey, TValue>.ICollection<KeyValuePair<TKey, TValue>>.CopyTo Method

Copies the contents of this dictionary to the specified array at the specified index.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Private Sub CopyTo ( _
    array As KeyValuePair(Of TKey, TValue)(), _
    arrayIndex As Integer _
) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).CopyTo
void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(
    KeyValuePair<TKey, TValue>[] array,
    int arrayIndex
)
private:
virtual void CopyTo(
    array<KeyValuePair<TKey, TValue>>^ array, 
    int arrayIndex
) sealed = ICollection<KeyValuePair<TKey, TValue>>::CopyTo
private abstract CopyTo : 
        array:KeyValuePair<'TKey, 'TValue>[] * 
        arrayIndex:int -> unit  
private override CopyTo : 
        array:KeyValuePair<'TKey, 'TValue>[] * 
        arrayIndex:int -> unit
JScript does not support explicit interface implementations.

Parameters

  • arrayIndex
    Type: System.Int32

    The index in the target array from which the copied contents will start.

Implements

ICollection<T>.CopyTo(array<T[], Int32)

.NET Framework Security

See Also

Reference

ReadOnlyDictionary<TKey, TValue> Class

Microsoft.TeamFoundation.Client Namespace