Export (0) Print
Expand All

PersonalizationDictionary Class

Note: This class is new in the .NET Framework version 2.0.

Encapsulates basic validation rules that indicate whether a piece of custom data is considered personalizable in either User or Shared scope.

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

public class PersonalizationDictionary : IDictionary, ICollection, IEnumerable
public class PersonalizationDictionary implements IDictionary, ICollection, 
	IEnumerable
public class PersonalizationDictionary implements IDictionary, ICollection, 
	IEnumerable

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 System.Web.UI.WebControls.WebParts.IPersonalizable.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.

System.Object
  System.Web.UI.WebControls.WebParts.PersonalizationDictionary

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft