PersonalizationDictionary.IDictionary.Item Property (Object)

 

Gets or sets the Item property value for the PersonalizationDictionary class.

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

object IDictionary.this[
	object key
] { get; set; }

Parameters

key
Type: System.Object

A String that identifies a particular PersonalizationEntry object in the personalization dictionary.

Property Value

Type: System.Object

A PersonalizationEntry object whose value matches key.

Exception Condition
ArgumentException

key is not a String object.

The Item first ensures that key is a String object, and if so, it calls the PersonalizationDictionary class's own Item property to return the PersonalizationEntry whose key equals key in the current dictionary.

.NET Framework
Available since 2.0
Return to top
Show: