PersonalizationDictionary::IDictionary::Contains Method (Object^)
.NET Framework (current version)
Implements the IDictionary::Contains method for the PersonalizationDictionary class.
Assembly: System.Web (in System.Web.dll)
Parameters
- key
-
Type:
System::Object^
A String object that identifies a particular PersonalizationEntry to check for existence in the personalization dictionary.
Return Value
Type: System::Booleantrue if key exists in the personalization dictionary; otherwise false.
Implements
IDictionary::Contains(Object^)| Exception | Condition |
|---|---|
| ArgumentException | key is not a String. |
The Contains method checks key to ensure it is a valid object for checking the personalization dictionary, and if so, it passes it to the PersonalizationDictionary class's own Contains method.
.NET Framework
Available since 2.0
Available since 2.0
Show: