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)

private:
virtual void CopyTo(
	array<KeyValuePair<String^, Object^>>^ array, 
	int index
) sealed = ICollection<KeyValuePair<String^, Object^>>::CopyTo

Parameters

array
Type: array<System.Collections.Generic::KeyValuePair<String, Object>>
The target array.
index
Type: System::Int32
The index.

Implements

ICollection<T>::CopyTo(array<T>, Int32)

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

Show: