Editar

Compartir a través de


PersonalizationEntry Constructors

Definition

Initializes a new instance of the PersonalizationEntry class.

Overloads

PersonalizationEntry(Object, PersonalizationScope)

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

PersonalizationEntry(Object, PersonalizationScope, Boolean)

Initializes a new instance of the PersonalizationEntry class using the provided parameters.

PersonalizationEntry(Object, PersonalizationScope)

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

public:
 PersonalizationEntry(System::Object ^ value, System::Web::UI::WebControls::WebParts::PersonalizationScope scope);
public PersonalizationEntry (object value, System.Web.UI.WebControls.WebParts.PersonalizationScope scope);
new System.Web.UI.WebControls.WebParts.PersonalizationEntry : obj * System.Web.UI.WebControls.WebParts.PersonalizationScope -> System.Web.UI.WebControls.WebParts.PersonalizationEntry
Public Sub New (value As Object, scope As PersonalizationScope)

Parameters

value
Object

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

scope
PersonalizationScope

The PersonalizationScope that applies to the custom personalization information.

Exceptions

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

Remarks

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.

Applies to

PersonalizationEntry(Object, PersonalizationScope, Boolean)

Initializes a new instance of the PersonalizationEntry class using the provided parameters.

public:
 PersonalizationEntry(System::Object ^ value, System::Web::UI::WebControls::WebParts::PersonalizationScope scope, bool isSensitive);
public PersonalizationEntry (object value, System.Web.UI.WebControls.WebParts.PersonalizationScope scope, bool isSensitive);
new System.Web.UI.WebControls.WebParts.PersonalizationEntry : obj * System.Web.UI.WebControls.WebParts.PersonalizationScope * bool -> System.Web.UI.WebControls.WebParts.PersonalizationEntry
Public Sub New (value As Object, scope As PersonalizationScope, isSensitive As Boolean)

Parameters

value
Object

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

scope
PersonalizationScope

The PersonalizationScope that applies to the custom personalization information.

isSensitive
Boolean

A Boolean value indicating if the custom state information is sensitive and should not be exported.

Remarks

This constructor allows you to create a PersonalizationEntry that contains data that should not be serialized in the exported Web Part format. If you set the value of isSensitive to true, the Web Parts export handler will not serialize the data for export.

Applies to