ICommandProvider.GetCommandHandler Method
Returns the command event handler from the specified context menu that contains the specified command.
Namespace: Microsoft.VisualStudio.TestTools.Vsip
Assembly: Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)
Syntax
声明
Function GetCommandHandler ( _
contextMenuId As CommandID, _
commandId As CommandID _
) As CommandEventHandler
CommandEventHandler GetCommandHandler(
CommandID contextMenuId,
CommandID commandId
)
CommandEventHandler^ GetCommandHandler(
CommandID^ contextMenuId,
CommandID^ commandId
)
abstract GetCommandHandler :
contextMenuId:CommandID *
commandId:CommandID -> CommandEventHandler
function GetCommandHandler(
contextMenuId : CommandID,
commandId : CommandID
) : CommandEventHandler
Parameters
- contextMenuId
Type: System.ComponentModel.Design.CommandID
A CommandID object that identifies a context menu.
- commandId
Type: System.ComponentModel.Design.CommandID
A CommandID object that identifies the command to search for.
Return Value
Type: Microsoft.VisualStudio.TestTools.Vsip.CommandEventHandler
A command event handler, if found; otherwise, nulla null reference (Nothing in Visual Basic).
.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.