System.Web 2.0.0.0

A verb in controls is an action that a user can carry out in the user interface (UI). Typically, a verb is represented in the UI by a clickable control such as a button, a link, or a menu item. The Web Parts control set provides standard verbs that are available by default to controls and other server controls (such as custom, ASP.NET, and user controls) that can act like controls when placed in zones. Standard verbs include close, minimize, restore, delete, edit, and export.

You can also create custom verbs for use with and server controls. The interface, with its property, gives you a way to integrate custom verbs into your controls. The class implements the interface and implements its single property. To add custom verbs to a control that inherits from the class, you must override the property, add custom verbs to a collection, and return the collection. The collection referenced by the property contains only custom verbs; standard verbs are not included in this collection. The default return value of the property in a control is null, because by default there are no custom verbs in the collection.

Adding custom verbs to server controls that are not controls requires one extra step. In those cases, the controls must also implement the interface and implement the property.

After you have added custom verbs to the collection, the Web Parts control set automatically handles the other steps necessary to create and render the custom verbs.

Enables controls or other server controls to contain collections of verbs.

- Property
  System.Web.UI.WebControls.WebParts.WebPartVerbCollection To be added.

  The property references a collection of custom verbs (if any) that are added to a verbs menu in the header of a or other server control. The collection does not contain references to the standard objects provided with the Web Parts control set, such as , , , , or .

  Developers who want to add custom verbs to a custom control that derives from the class can simply override the property that the class implements.

  Developers who want to add custom verbs to a user control, or a custom control that is not a control, must implement the interface by providing an implementation of the property.

  Gets a reference to a collection of custom objects.

  2.0.0.0