System.Web.UI.WebControls.WebParts.WebPartVerbCollection Class

Represents a collection of custom Web Parts verbs. This class cannot be inherited.

See Also: WebPartVerbCollection Members

Syntax

public sealed class WebPartVerbCollection : ReadOnlyCollectionBase

Remarks

Web Parts verbs are interactive user interface (UI) elements that are displayed in a menu or title bar of a Web Parts control. A Web Parts zone provides to a Web Parts control a standard set of verbs that are rendered in the Web Parts verb menu. A custom Web Parts zone or a Web Parts control can add additional verbs to this menu.

ASP.NET provides several standard verbs by default to all controls in a Web Parts zone, including the close and minimize verbs. There are standard verbs for opening, closing, editing, and minimizing a control, and other verbs for exporting a definition for the control or loading a Help file.

You can create new verbs that are added to the Web Parts verb menu. A control can inherit from the System.Web.UI.WebControls.WebParts.WebPart base class and add System.Web.UI.WebControls.WebParts.WebPartVerb objects to a System.Web.UI.WebControls.WebParts.WebPartVerbCollection collection. This collection can then be added to the WebPart.Verbs collection of the control.

A control can also implement the System.Web.UI.WebControls.WebParts.IWebActionable interface and override the IWebActionable.Verbs property. You can then use a System.Web.UI.WebControls.WebParts.WebPartVerbCollection collection to add custom verbs to a control.

This class implements ReadOnlyCollectionBase, which provides a non-generic, read-only collection.

Requirements

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0