ToolZone 构造函数

定义

将一个或多个 WebPartDisplayMode 对象与特定类型的 ToolZone 区域相关联,以便在页面处于适当的页面显示模式时显示该区域。

重载

名称 说明
ToolZone(ICollection)

WebPartDisplayMode 对象的集合与特定的 ToolZone 区域相关联,以便可以在相应的页面显示模式下显示区域。

ToolZone(WebPartDisplayMode)

将单个 WebPartDisplayMode 对象与特定的 ToolZone 区域相关联,以便可以在相应的页面显示模式下显示区域。

ToolZone(ICollection)

WebPartDisplayMode 对象的集合与特定的 ToolZone 区域相关联,以便可以在相应的页面显示模式下显示区域。

protected:
 ToolZone(System::Collections::ICollection ^ associatedDisplayModes);
protected ToolZone(System.Collections.ICollection associatedDisplayModes);
new System.Web.UI.WebControls.WebParts.ToolZone : System.Collections.ICollection -> System.Web.UI.WebControls.WebParts.ToolZone
Protected Sub New (associatedDisplayModes As ICollection)

参数

associatedDisplayModes
ICollection

ICollection一个WebPartDisplayMode对象,用于确定何时可以显示区域。

例外

参数 associatedDisplayModes 等于 null 或 0。

注解

构造 ToolZone 函数用于将区域与一 ToolZone 个或多个显示模式相关联。 这使工具区域能够在关联的显示模式下显示。

注释

在 Web 部件控件集提供的区域实现 ToolZone 中,每个区域仅与一个显示模式相关联。 但是,使用此构造函数的重载,可以将自定义区域与多个显示模式相关联。

另请参阅

适用于

ToolZone(WebPartDisplayMode)

将单个 WebPartDisplayMode 对象与特定的 ToolZone 区域相关联,以便可以在相应的页面显示模式下显示区域。

protected:
 ToolZone(System::Web::UI::WebControls::WebParts::WebPartDisplayMode ^ associatedDisplayMode);
protected ToolZone(System.Web.UI.WebControls.WebParts.WebPartDisplayMode associatedDisplayMode);
new System.Web.UI.WebControls.WebParts.ToolZone : System.Web.UI.WebControls.WebParts.WebPartDisplayMode -> System.Web.UI.WebControls.WebParts.ToolZone
Protected Sub New (associatedDisplayMode As WebPartDisplayMode)

参数

associatedDisplayMode
WebPartDisplayMode

一个 WebPartDisplayMode ,用于确定何时可以显示区域。

例外

参数 associatedDisplayMode 等于 null.

注解

构造 ToolZone 函数用于将 ToolZone 区域与单个显示模式相关联。 这使工具区域能够在页面进入该显示模式时显示。 例如, CatalogZone 控件只能在 CatalogDisplayMode 模式下显示。

另请参阅

适用于