This documentation is archived and is not being maintained.

GenericWebPart::Verbs Property

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:
virtual property WebPartVerbCollection^ Verbs {
	WebPartVerbCollection^ get () override;
}

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.

Implements

IWebActionable::Verbs

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

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: