GenericWebPart.Verbs Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a collection of custom verbs associated with a GenericWebPart control.

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

public override WebPartVerbCollection Verbs { get; }

Property Value

Type: System.Web.UI.WebControls.WebParts.WebPartVerbCollection

A WebPartVerbCollection that contains custom WebPartVerb objects associated with a GenericWebPart control. The default value is Empty.

Verbs derive from the WebPartVerb class, and provide user interface (UI) actions that users can perform on a GenericWebPart control. Usually, verbs are represented in the UI as buttons, links, or menu items. 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. These verbs are not included in the Verbs collection, because the collection contains only custom verbs.

This property overrides the base property so that you can access the property on the child control as if it were a true WebPart control. If you child control implements the IWebActionable interface and thus overrides its IWebActionable.Verbs property, the GenericWebPart control uses the child control's implementation when the GenericWebPart.Verbs property is invoked on the GenericWebPart control.

When you create custom verbs and add them to the Verbs collection, you can then access the verbs programmatically from a Verbs control.

.NET Framework
Available since 2.0
Return to top