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.