ToolZone Constructor (WebPartDisplayMode)

Note: This constructor is new in the .NET Framework version 2.0.

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
)

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: