TempDataDictionary.ICollection(Of KeyValuePair(Of String, Object)).Remove Method

Visual Studio 2010

Deletes the specified key/value pair from the dictionary.

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

'Declaration
Private Function Remove ( _
	keyValuePair As KeyValuePair(Of String, Object) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Remove

Parameters

keyValuePair
Type: System.Collections.Generic.KeyValuePair(Of String, Object)
The key/value pair.

Return Value

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

Implements

ICollection(Of 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(Of T) interface.

Community Additions

ADD
Show: