IWebMatrixHost.ContextMenuOpening 事件
适用于版本2
当用户在树视图中打开某项的上下文菜单时发生。
命名空间: Microsoft.WebMatrix.Extensibility
程序集: Microsoft.WebMatrix.Extensibility(在 Microsoft.WebMatrix.Extensibility.dll 中)
语法
声明
Event ContextMenuOpening As EventHandler(Of ContextMenuOpeningEventArgs)
用法
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.