Export (0) Print
Expand All

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

Deletes the specified key/value pair from the dictionary.

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

bool ICollection<KeyValuePair<string, Object>>.Remove(
	KeyValuePair<string, Object> keyValuePair
)

Parameters

keyValuePair
Type: System.Collections.Generic.KeyValuePair<String, Object>
The key/value pair.

Return Value

Type: System.Boolean
true if the key/value pair was removed successfully; otherwise, false.

Implements

ICollection<T>.Remove(T)

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:
© 2014 Microsoft