WebPartPersonalization.IsEnabled Property


Gets a value that indicates whether personalization is enabled and has successfully loaded personalization data for this instance of the WebPartPersonalization class.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public bool IsEnabled { get; }

Property Value

Type: System.Boolean

true if personalization is enabled for the current WebPartPersonalization instance and personalization data has successfully loaded; otherwise, false.

Prior to loading personalization data, this property will always return false. For example, this property will return false during the PreInit phase. After the associated WebPartManager's OnInit method has successfully completed (during which the Load method is called), this property will then return true.

This property is a publicly accessible alias for the protected IsInitialized property.

.NET Framework
Available since 2.0
Return to top