Partager via


TempDataDictionary.ICollection<KeyValuePair<String, Object>>.CopyTo Method

Copies a key/value pair to the specified array at the specified index.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Private Sub CopyTo ( _
    array As KeyValuePair(Of String, Object)(), _
    index As Integer _
) Implements ICollection(Of KeyValuePair(Of String, Object)).CopyTo
void ICollection<KeyValuePair<string, Object>>.CopyTo(
    KeyValuePair<string, Object>[] array,
    int index
)
private:
virtual void CopyTo(
    array<KeyValuePair<String^, Object^>>^ array, 
    int index
) sealed = ICollection<KeyValuePair<String^, Object^>>::CopyTo

Parameters

Implements

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

Remarks

This member is an explicit interface member implementation. It can be used only when the TempDataDictionary instance is cast to an ICollection<T> interface.

See Also

Reference

TempDataDictionary Class

System.Web.Mvc Namespace