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