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.

Exception Condition
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
Available since 2.0
Return to top
Show: