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
'Usage
Dim instance As TempDataDictionary
Dim array As KeyValuePair(Of String, Object)()
Dim index As Integer
CType(instance, ICollection(Of KeyValuePair(Of String, Object))).CopyTo(array, _
index)
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
private abstract CopyTo :
array:KeyValuePair<string, Object>[] *
index:int -> unit
private override CopyTo :
array:KeyValuePair<string, Object>[] *
index:int -> unit
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
array
Type: System.Collections.Generic.KeyValuePair<String, Object>[]The target array.
index
Type: System.Int32The index.
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.