Compartilhar via


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)

Syntax

'Declaration
Private Function Remove ( _
    keyValuePair As KeyValuePair(Of String, Object) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Remove
bool ICollection<KeyValuePair<string, Object>>.Remove(
    KeyValuePair<string, Object> keyValuePair
)
private:
virtual bool Remove(
    KeyValuePair<String^, Object^> keyValuePair
) sealed = ICollection<KeyValuePair<String^, Object^>>::Remove

Parameters

Return Value

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

Implements

ICollection<T>.Remove(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