IWebActionable.Verbs Property
Assembly: System.Web (in system.web.dll)
The Verbs property references a collection of custom verbs (if any) that are added to a verbs menu in the header of a WebPart or other server control. The Verbs collection does not contain references to the standard WebPartVerb objects provided with the Web Parts control set, such as CloseVerb, DeleteVerb, EditVerb, RestoreVerb, or MinimizeVerb.
Developers who want to add custom verbs to a custom control that derives from the WebPart class can simply override the Verbs property that the WebPart class implements.
Developers who want to add custom verbs to a user control, or a custom control that is not a WebPart control, must implement the IWebActionable interface by providing an implementation of the Verbs property.
The following code example demonstrates the use of the Verbs property as implemented in a user control. The full code for this code example can be found in the Example section of the IWebActionable class overview topic.
The following portion of the code example demonstrates a custom implementation of the Verbs property within a user control.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.