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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: