ToolZone Constructor (ICollection)

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

Associates a collection of WebPartDisplayMode objects with a particular ToolZone zone, so that the zone can be displayed in the appropriate page display modes.

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

protected:
ToolZone (
	ICollection^ associatedDisplayModes
)
protected ToolZone (
	ICollection associatedDisplayModes
)
protected function ToolZone (
	associatedDisplayModes : ICollection
)

Parameters

associatedDisplayModes

An ICollection of WebPartDisplayMode objects that determine when a zone can be displayed.

Exception typeCondition

ArgumentNullException

The associatedDisplayModes parameter is equal to a null reference (Nothing in Visual Basic) 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.

NoteNote

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.

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: