IWebMatrixHost.ContextMenuOpening Event

Applies to v2.

Occurs when the user opens a context menu for an item in the tree view.

Namespace:  Microsoft.WebMatrix.Extensibility
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Event ContextMenuOpening As EventHandler(Of ContextMenuOpeningEventArgs)
'Usage
Dim instance As IWebMatrixHost 
Dim handler As EventHandler(Of ContextMenuOpeningEventArgs)

AddHandler instance.ContextMenuOpening, handler
event EventHandler<ContextMenuOpeningEventArgs> ContextMenuOpening
event EventHandler<ContextMenuOpeningEventArgs^>^ ContextMenuOpening {
    void add (EventHandler<ContextMenuOpeningEventArgs^>^ value);
    void remove (EventHandler<ContextMenuOpeningEventArgs^>^ value);
}
abstract ContextMenuOpening : IEvent<EventHandler<ContextMenuOpeningEventArgs>,
    ContextMenuOpeningEventArgs>
JScript supports the use of events, but not the declaration of new ones.

See Also

Reference

IWebMatrixHost Interface

Microsoft.WebMatrix.Extensibility Namespace