Udostępnij za pośrednictwem


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
void ICollection<KeyValuePair<string, Object>>.Add(
    KeyValuePair<string, Object> keyValuePair
)
private:
virtual void Add(
    KeyValuePair<String^, Object^> keyValuePair
) sealed = ICollection<KeyValuePair<String^, Object^>>::Add

Parameters

Implements

ICollection<T>.Add(T)

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