This documentation is archived and is not being maintained.

PersonalizationEntry Constructor (Object, PersonalizationScope)

Initializes a new instance of the PersonalizationEntry class using the specified value and scope.

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

public:
PersonalizationEntry(
	Object^ value, 
	PersonalizationScope scope
)

Parameters

value
Type: System::Object

An object of personalization data associated with the personalization scope in the scope parameter.

scope
Type: System.Web.UI.WebControls.WebParts::PersonalizationScope

The PersonalizationScope that applies to the custom personalization information.

ExceptionCondition
ArgumentOutOfRangeException

scope is set to a value that is not a valid member of PersonalizationScope.

Note that the custom state information contained in the value parameter must have an associated scope as specified in the scope parameter. Entries in the PersonalizationDictionary must explicitly indicate whether a piece of custom data is considered personalizable in User or Shared scope.

In this constructor, the value for the IsSensitive property defaults to false.

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

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: