TempDataDictionary.ContainsKey Method (String)
Determines whether the IDictionary<TKey, TValue> instance contains an element that has the specified key.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- key
-
Type:
System.String
The key to locate in the IDictionary<TKey, TValue> instance.
Return Value
Type: System.Booleantrue if the IDictionary<TKey, TValue> instance contains an element that has the specified key; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | key is null. |
Show: