ToolZone Constructor (WebPartDisplayMode)
Associates a single WebPartDisplayMode object with a particular ToolZone zone, so that the zone can be displayed in the appropriate page display mode.
Assembly: System.Web (in System.Web.dll)
Parameters
- associatedDisplayMode
- Type: System.Web.UI.WebControls.WebParts::WebPartDisplayMode
A WebPartDisplayMode that determines when a zone can be displayed.
| Exception | Condition |
|---|---|
| ArgumentNullException | The associatedDisplayMode parameter is equal to nullptr. |
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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.