ToolZone.ToolZone(ICollection) Constructor

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
)
Not applicable.

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 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: