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.

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

protected:
ToolZone(
	WebPartDisplayMode^ associatedDisplayMode
)

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 null.

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.

.NET Framework
Available since 2.0
Return to top
Show: