ToolZone.ToolZone(WebPartDisplayMode) Constructor

Associates a single WebPartDisplayMode object with a particular ToolZone zone, so that the zone can be displayed in the appropriate page display mode.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

protected:
ToolZone (
	WebPartDisplayMode^ associatedDisplayMode
)
protected ToolZone (
	WebPartDisplayMode associatedDisplayMode
)
protected function ToolZone (
	associatedDisplayMode : WebPartDisplayMode
)
Not applicable.

Parameters

associatedDisplayMode

A WebPartDisplayMode that determines when a zone can be displayed.

Exception typeCondition

ArgumentNullException

The associatedDisplayMode parameter is equal to a null reference (Nothing in Visual Basic).

The ToolZone constructor is used to associate a ToolZone zone with a single display mode. This enables the tool zone to be displayed when a page enters that display mode. For example, a CatalogZone control can be displayed only in CatalogDisplayMode mode.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: