Delen via


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

Determines whether a sequence contains a specified element by using the default equality comparer.

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

Syntax

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

Parameters

Return Value

Type: System.Boolean
true if the dictionary contains the specified key/value pair; otherwise, false.

Implements

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