WebTestTuip.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 Overridable Function GetCommandHandler ( _
contextMenuId As CommandID, _
commandId As CommandID _
) As CommandEventHandler
public virtual CommandEventHandler GetCommandHandler(
CommandID contextMenuId,
CommandID commandId
)
public:
virtual CommandEventHandler^ GetCommandHandler(
CommandID^ contextMenuId,
CommandID^ commandId
)
abstract GetCommandHandler :
contextMenuId:CommandID *
commandId:CommandID -> CommandEventHandler
override GetCommandHandler :
contextMenuId:CommandID *
commandId:CommandID -> CommandEventHandler
public 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).
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.