ViewDataDictionary.Contains Method

Determines whether the collection contains the specified item.

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

Syntax

'Declaration
Public Function Contains ( _
    item As KeyValuePair(Of String, Object) _
) As Boolean
public bool Contains(
    KeyValuePair<string, Object> item
)
public:
virtual bool Contains(
    KeyValuePair<String^, Object^> item
) sealed

Parameters

Return Value

Type: System.Boolean
true if item is found in the collection; otherwise, false.

Implements

ICollection<T>.Contains(T)

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace