PageCatalogPart.Enabled 属性

定义

在呈现 PageCatalogPart 控件时,Web 部件控件集不使用此继承的属性。This inherited property is not used by the Web Parts control set when rendering a PageCatalogPart control. 此属性被重写只是为了防止它出现在 Microsoft Visual Studio 2005 设计器工具中。The property is overridden only for the purpose of preventing it from appearing in Microsoft Visual Studio 2005 designer tools.

public:
 virtual property bool Enabled { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.Themeable(false)]
public override bool Enabled { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.Themeable(false)>]
member this.Enabled : bool with get, set
Public Overrides Property Enabled As Boolean

属性值

Boolean

一个布尔值,指示控件当前已启用还是已禁用。A Boolean value that indicates whether a control is currently enabled or disabled.

属性

注解

Enabled作为控件的成员的属性未在用于 PageCatalogPart 呈现控件的 Web 部件控件集内的任何位置使用。The Enabled property, as a member of the PageCatalogPart control, is not used anywhere within the Web Parts control set for rendering the control. 因此,不应使用此属性;设置它不会对呈现产生任何影响。Therefore, you should not use this property; setting it has no effect on rendering.

若要防止开发人员使用此属性,请将代码特性设置为在 Visual Studio 中隐藏它。To prevent developers from using this property, code attributes are set on it to hide it in Visual Studio. PageCatalogPart Visual Studio 中使用控件时, Enabled 属性在 "属性" 窗格或 IntelliSense 中不可见。When you work with a PageCatalogPart control in Visual Studio, the Enabled property is not visible in the Properties pane or IntelliSense.

如果要使用此属性,则需要创建从类继承的自定义类 CatalogPartIf you want to use this property, you need to create a custom class that inherits from the CatalogPart class. 自定义类可以使用继承的 Enabled 属性,也可以重写该属性并更改其行为。The custom class can either use the inherited Enabled property as it is, or override it and change its behavior.

无法通过主题或样式表主题设置此属性。This property cannot be set by themes or style sheet themes. 有关详细信息,请参阅 ThemeableAttributeASP.NET 主题和外观For more information, see ThemeableAttribute and ASP.NET Themes and Skins.

适用于

另请参阅