ICommandProvider::GetCommandHandler Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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)
CommandEventHandler^ GetCommandHandler( CommandID^ contextMenuId, CommandID^ commandId )
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::CommandEventHandlerA command event handler, if found; otherwise, nullptr.
- 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.
Community Additions
Show: