WebPartPersonalization.Enabled Propriedade
Definição
Retorna um valor que indica se a personalização é solicitada para ser habilitada para o controle WebPartManager associado.Returns a value indicating whether personalization is requested to be enabled for the associated WebPartManager control.
public:
virtual property bool Enabled { bool get(); void set(bool value); };
public virtual bool Enabled { get; set; }
member this.Enabled : bool with get, set
Public Overridable Property Enabled As Boolean
Valor da propriedade
true se a personalização estiver habilitada; caso contrário, false .true if personalization is enabled; otherwise, false.
Exceções
Foi feita uma tentativa para definir este valor da propriedade após o método OnInit(EventArgs) do controle WebPartManager associado ter sido concluído.An attempt was made to set this property value after the associated WebPartManager control's OnInit(EventArgs) method had completed.
Comentários
Esta propriedade indica se a personalização é solicitada para ser habilitada para o WebPartManager controle pai.This property indicates whether personalization is requested to be enabled for the parent WebPartManager control. Observe que essa é uma distinção sutil, mas importante, da intenção de IsEnabled e IsInitialized .Note that this is a subtle but important distinction from the intent of IsEnabled and IsInitialized.
Essa propriedade só pode ser definida antes da conclusão do WebPartManager método do controle OnInit .This property can only be set prior to the completion of the WebPartManager control's OnInit method. Na prática, isso significa que a Enabled propriedade deve ser definida na marcação de página no WebPartManager elemento se a personalização deve ser desabilitada.In practice, this means that the Enabled property must be set in the page markup on the WebPartManager element if personalization should be disabled. Como alternativa, essa propriedade pode ser definida durante a PreInit fase do WebPartManager controle.Alternatively, this property can be set during the PreInit phase of the WebPartManager control.