PersonalizationDictionary::IDictionary::Contains Method (Object^)

 

Implements the IDictionary::Contains method for the PersonalizationDictionary class.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

private:
virtual bool Contains(
	Object^ key
) sealed = IDictionary::Contains

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::Boolean

true if key exists in the personalization dictionary; otherwise false.

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
Return to top
Show: