PersonalizationEntry.PersonalizationEntry(Object, PersonalizationScope) Constructor

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
)
public PersonalizationEntry (
	Object value, 
	PersonalizationScope scope
)
public function PersonalizationEntry (
	value : Object, 
	scope : PersonalizationScope
)
Not applicable.

Parameters

value

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

scope

The PersonalizationScope that applies to the custom personalization information.

Exception typeCondition

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 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: