PersonalizationDictionary Class
Assembly: System.Web (in System.Web.dll)
The PersonalizationDictionary type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | PersonalizationDictionary() | Initializes a new instance of the PersonalizationDictionary class. |
![]() | PersonalizationDictionary(Int32) | Initializes a new instance of the PersonalizationDictionary class using the provided parameter. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of entries in the dictionary. |
![]() | IsFixedSize | Gets whether the personalization dictionary is of a fixed size. |
![]() | IsReadOnly | Gets whether the personalization dictionary is read-only. |
![]() | IsSynchronized | Gets whether the personalization dictionary is synchronized. |
![]() | Item | Gets or sets an entry in the personalization dictionary. |
![]() | Keys | Gets a reference to an ICollection object containing the keys for the personalization dictionary. |
![]() | SyncRoot | Gets an object that can be used to synchronize access to the personalization dictionary. |
![]() | Values | Gets a reference to an ICollection object containing the values in the personalization dictionary. |
| Name | Description | |
|---|---|---|
![]() | Add | Adds personalization entries to the personalization dictionary. |
![]() | Clear | Removes all custom state information from the current PersonalizationDictionary object. |
![]() | Contains | Returns a value indicating whether a piece of custom state information with the same key is contained in the personalization dictionary. |
![]() | CopyTo | Copies the personalization dictionary state entries as DictionaryEntry instances into the specified array. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator that can be used to iterate through the entries in the personalization dictionary. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove | Removes a custom state entry based on the provided key. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection::CopyTo | Implements the ICollection::CopyTo method for the PersonalizationDictionary class. |
![]() ![]() | IDictionary::Add | Implements the IDictionary::Add method for the PersonalizationDictionary class. |
![]() ![]() | IDictionary::Contains | Implements the IDictionary::Contains method for the PersonalizationDictionary class. |
![]() ![]() | IDictionary::Item | Gets or sets the Item property value for the PersonalizationDictionary class. |
![]() ![]() | IDictionary::Remove | Implements the IDictionary::Remove method for the PersonalizationDictionary class. |
![]() ![]() | IEnumerable::GetEnumerator | Implements the IEnumerable::GetEnumerator method for the PersonalizationDictionary class. |
A PersonalizationDictionary instance is a collection of PersonalizationEntry objects, which consist of a personalization scope and an object value. These entries are assigned a key in the PersonalizationDictionary object.
A good practice is to add all properties to the dictionary using the Save method, regardless of the scope of the page. The .NET Framework saves the information in the appropriate way; for example, shared data is saved when the page is in Shared scope. However, shared properties are not saved when a Web Parts value is being saved, the page is in User scope, and the WebPart control was added with the page in Shared scope.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.






