BaseMenuHandler.AddMenuHandler Method (Guid, UInt32, EventHandler, EventHandler)
Helper routine for adding menu handlers for execute and query status to the package level menus.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Common.UI
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Protected Sub AddMenuHandler ( _
cmdSet As Guid, _
cmdId As UInteger, _
handler As EventHandler, _
queryStatusHandler As EventHandler _
)
'Usage
Dim cmdSet As Guid
Dim cmdId As UInteger
Dim handler As EventHandler
Dim queryStatusHandler As EventHandler
Me.AddMenuHandler(cmdSet, cmdId, handler, _
queryStatusHandler)
protected void AddMenuHandler(
Guid cmdSet,
uint cmdId,
EventHandler handler,
EventHandler queryStatusHandler
)
protected:
void AddMenuHandler(
Guid cmdSet,
unsigned int cmdId,
EventHandler^ handler,
EventHandler^ queryStatusHandler
)
protected function AddMenuHandler(
cmdSet : Guid,
cmdId : uint,
handler : EventHandler,
queryStatusHandler : EventHandler
)
member AddMenuHandler :
cmdSet:Guid *
cmdId:uint32 *
handler:EventHandler *
queryStatusHandler:EventHandler -> unit
Parameters
- cmdSet
Type: System.Guid
The command Guid
- cmdId
Type: System.UInt32
The command ID
- handler
Type: System.EventHandler
The command handler
- queryStatusHandler
Type: System.EventHandler
The QueryStatus handler
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace