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 。 这使工具区域能够在关联的显示模式下显示。

注意

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

另请参阅

适用于

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 显示。

另请参阅

适用于