LoadTestTuip.GetCommandHandler Method
Returns the command event handler from the specified context menu that contains the specified command.
Namespace: Microsoft.VisualStudio.TestTools.LoadTest
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestPackage (in Microsoft.VisualStudio.QualityTools.LoadTestPackage.dll)
Syntax
'Declaration
Public Function GetCommandHandler ( _
contextMenuId As CommandID, _
commandId As CommandID _
) As CommandEventHandler
public CommandEventHandler GetCommandHandler(
CommandID contextMenuId,
CommandID commandId
)
public:
virtual CommandEventHandler^ GetCommandHandler(
CommandID^ contextMenuId,
CommandID^ commandId
) sealed
abstract GetCommandHandler :
contextMenuId:CommandID *
commandId:CommandID -> CommandEventHandler
override GetCommandHandler :
contextMenuId:CommandID *
commandId:CommandID -> CommandEventHandler
public final function GetCommandHandler(
contextMenuId : CommandID,
commandId : CommandID
) : CommandEventHandler
Parameters
contextMenuId
Type: CommandIDA CommandID object that identifies a context menu.
commandId
Type: CommandIDA 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).
Implements
ICommandProvider.GetCommandHandler(CommandID, CommandID)
.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.