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::CommandEventHandler
A command event handler, if found; otherwise, nullptr.

Community Additions

Show: