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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.
Show: