TempDataDictionary.ICollection<KeyValuePair<String, Object>>.Add Method
Adds the specified key/value pair to the dictionary.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Private Sub Add ( _
keyValuePair As KeyValuePair(Of String, Object) _
) Implements ICollection(Of KeyValuePair(Of String, Object)).Add
'Usage
Dim instance As TempDataDictionary
Dim keyValuePair As KeyValuePair(Of String, Object)
CType(instance, ICollection(Of KeyValuePair(Of String, Object))).Add(keyValuePair)
void ICollection<KeyValuePair<string, Object>>.Add(
KeyValuePair<string, Object> keyValuePair
)
private:
virtual void Add(
KeyValuePair<String^, Object^> keyValuePair
) sealed = ICollection<KeyValuePair<String^, Object^>>::Add
private abstract Add :
keyValuePair:KeyValuePair<string, Object> -> unit
private override Add :
keyValuePair:KeyValuePair<string, Object> -> unit
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
- keyValuePair
Type: System.Collections.Generic.KeyValuePair<String, Object>
The key/value pair.
Implements
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.