WebPartDisplayMode.IsEnabled(WebPartManager) 方法
定义
获取一个值,该值指示当一个页面处于某种显示模式时,用户是否可以对页面进行个性化设置。Gets a value that indicates whether users can personalize a page while the page is in a certain display mode.
public:
virtual bool IsEnabled(System::Web::UI::WebControls::WebParts::WebPartManager ^ webPartManager);
public virtual bool IsEnabled (System.Web.UI.WebControls.WebParts.WebPartManager webPartManager);
abstract member IsEnabled : System.Web.UI.WebControls.WebParts.WebPartManager -> bool
override this.IsEnabled : System.Web.UI.WebControls.WebParts.WebPartManager -> bool
Public Overridable Function IsEnabled (webPartManager As WebPartManager) As Boolean
参数
- webPartManager
- WebPartManager
当前页面上的 WebPartManager 控件实例。The WebPartManager control instance on the current page.
返回
如果用户可以对页面进行个性化设置,则为 true;否则为 false。true if users can personalize a page; otherwise, false. 默认值为 true。The default is true. 不过,如果 RequiresPersonalization 设置为 true,而且在页面上禁用个性化设置,默认值将会是 false。However, when RequiresPersonalization is set to true, and personalization is disabled on the page, the default will be false.