ToolZone Constructor (ICollection^)
.NET Framework (current version)
Associates a collection of WebPartDisplayMode objects with a particular ToolZone zone, so that the zone can be displayed in the appropriate page display modes.
Assembly: System.Web (in System.Web.dll)
Parameters
- associatedDisplayModes
-
Type:
System.Collections::ICollection^
An ICollection of WebPartDisplayMode objects that determine when a zone can be displayed.
| Exception | Condition |
|---|---|
| ArgumentNullException | The associatedDisplayModes parameter is equal to null or 0. |
The ToolZone constructor is used to associate a ToolZone zone with one or more display modes. This enables the tool zone to be displayed in the associated display modes.
Note |
|---|
In the implementation of ToolZone zones provided by the Web Parts control set, each zone is associated with only one display mode. However, using this overload of the constructor, it is possible to associate a custom zone with multiple display modes. |
.NET Framework
Available since 2.0
Available since 2.0
Show:
