Share via


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: CommandID

    A CommandID object that identifies a context menu.

  • commandId
    Type: 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

See Also

Reference

LoadTestTuip Class

Microsoft.VisualStudio.TestTools.LoadTest Namespace