WebPartPersonalization.IsInitialized 属性

定义

获取一个值,该值指示是否启用了个性化设置,以及是否为 WebPartPersonalization 类的这一实例成功加载了个性化设置数据。Gets a value that indicates whether personalization is enabled and has successfully loaded personalization data for this instance of the WebPartPersonalization class.

protected:
 property bool IsInitialized { bool get(); };
[System.ComponentModel.Browsable(false)]
protected bool IsInitialized { get; }
[<System.ComponentModel.Browsable(false)>]
member this.IsInitialized : bool
Protected ReadOnly Property IsInitialized As Boolean

属性值

Boolean

如果此实例的个性化设置已初始化,则为 true;否则为 falsetrue if personalization is initialized for this instance; otherwise, false.

属性

注解

如果启用了个性化功能 (如果将 Enabled 属性设置为 true) ,则在 WebPartPersonalization 关联的方法成功完成后立即将该实例视为已初始化, WebPartManager OnInit (在该 Load 方法中调用方法) 。If the personalization feature is enabled (if the Enabled property is set to true), the WebPartPersonalization instance is considered initialized immediately after the associated WebPartManager's OnInit method has successfully completed (during which the Load method is called). 在加载个性化设置数据之前,此属性始终返回 falsePrior to loading personalization data, this property always returns false.

适用于