次の方法で共有


IWebMatrixHost.ContextMenuOpening イベント

v2 に適用されます。

ユーザーがツリー ビューで項目のコンテキスト メニューを開いたときに発生します。

名前空間:  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.

関連項目

参照

IWebMatrixHost インターフェイス

Microsoft.WebMatrix.Extensibility 名前空間