TempDataDictionary.ContainsKey Method

Determines whether the IDictionary<TKey, TValue> instance contains an element that has the specified key.

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

Syntax

'Declaration
Public Function ContainsKey ( _
    key As String _
) As Boolean
public bool ContainsKey(
    string key
)
public:
virtual bool ContainsKey(
    String^ key
) sealed

Parameters

Return Value

Type: System.Boolean
true if the IDictionary<TKey, TValue> instance contains an element that has the specified key; otherwise, false.

Implements

IDictionary<TKey, TValue>.ContainsKey(TKey)

Exceptions

Exception Condition
ArgumentNullException

key is null.

See Also

Reference

TempDataDictionary Class

System.Web.Mvc Namespace