Düzenle

Aracılığıyla paylaş


PersonalizableAttribute Constructors

Definition

Initializes a new instance of the PersonalizableAttribute class.

Overloads

PersonalizableAttribute()

Initializes a new instance of the PersonalizableAttribute class.

PersonalizableAttribute(Boolean)

Initializes a new instance of the PersonalizableAttribute class using the provided parameter.

PersonalizableAttribute(PersonalizationScope)

Initializes a new instance of the PersonalizableAttribute class using the provided parameter.

PersonalizableAttribute(PersonalizationScope, Boolean)

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

PersonalizableAttribute()

Initializes a new instance of the PersonalizableAttribute class.

public:
 PersonalizableAttribute();
public PersonalizableAttribute ();
Public Sub New ()

Remarks

This constructor internally sets the IsPersonalizable property to true, the Scope property to User, and the IsSensitive property to false.

Applies to

PersonalizableAttribute(Boolean)

Initializes a new instance of the PersonalizableAttribute class using the provided parameter.

public:
 PersonalizableAttribute(bool isPersonalizable);
public PersonalizableAttribute (bool isPersonalizable);
new System.Web.UI.WebControls.WebParts.PersonalizableAttribute : bool -> System.Web.UI.WebControls.WebParts.PersonalizableAttribute
Public Sub New (isPersonalizable As Boolean)

Parameters

isPersonalizable
Boolean

A Boolean value indicating whether the property can be personalized.

Remarks

This constructor internally sets the IsPersonalizable property to the value of the Boolean parameter, the Scope property to User, and the IsSensitive property to false.

This constructor is useful if you want a derived type to mark a virtual property that is personalizable on the base type as not-personalizable on the derived type.

Applies to

PersonalizableAttribute(PersonalizationScope)

Initializes a new instance of the PersonalizableAttribute class using the provided parameter.

public:
 PersonalizableAttribute(System::Web::UI::WebControls::WebParts::PersonalizationScope scope);
public PersonalizableAttribute (System.Web.UI.WebControls.WebParts.PersonalizationScope scope);
new System.Web.UI.WebControls.WebParts.PersonalizableAttribute : System.Web.UI.WebControls.WebParts.PersonalizationScope -> System.Web.UI.WebControls.WebParts.PersonalizableAttribute
Public Sub New (scope As PersonalizationScope)

Parameters

scope
PersonalizationScope

A PersonalizationScope indicating the scope of the personalization.

Remarks

This constructor internally sets the IsPersonalizable property to true, the Scope property to the parameter specified, and the IsSensitive property to false.

Applies to

PersonalizableAttribute(PersonalizationScope, Boolean)

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

public:
 PersonalizableAttribute(System::Web::UI::WebControls::WebParts::PersonalizationScope scope, bool isSensitive);
public PersonalizableAttribute (System.Web.UI.WebControls.WebParts.PersonalizationScope scope, bool isSensitive);
new System.Web.UI.WebControls.WebParts.PersonalizableAttribute : System.Web.UI.WebControls.WebParts.PersonalizationScope * bool -> System.Web.UI.WebControls.WebParts.PersonalizableAttribute
Public Sub New (scope As PersonalizationScope, isSensitive As Boolean)

Parameters

scope
PersonalizationScope

A PersonalizationScope indicating the scope of the personalization.

isSensitive
Boolean

A Boolean value indicating whether the property information is considered sensitive.

Remarks

This constructor internally sets the IsPersonalizable property to true, the Scope property to the first parameter specified, and the IsSensitive property to the second parameter specified.

Applies to