Editare

Partajați prin


GenericWebPart.Verbs Property

Definition

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

public:
 virtual property System::Web::UI::WebControls::WebParts::WebPartVerbCollection ^ Verbs { System::Web::UI::WebControls::WebParts::WebPartVerbCollection ^ get(); };
public override System.Web.UI.WebControls.WebParts.WebPartVerbCollection Verbs { get; }
member this.Verbs : System.Web.UI.WebControls.WebParts.WebPartVerbCollection
Public Overrides ReadOnly Property Verbs As WebPartVerbCollection

Property Value

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

Remarks

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.

Applies to

See also