ICommandProvider.GetCommandHandler Method

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)

Syntax

声明
Function GetCommandHandler ( _
    contextMenuId As CommandID, _
    commandId As CommandID _
) As CommandEventHandler
CommandEventHandler GetCommandHandler(
    CommandID contextMenuId,
    CommandID commandId
)
CommandEventHandler^ GetCommandHandler(
    CommandID^ contextMenuId, 
    CommandID^ commandId
)
abstract GetCommandHandler : 
        contextMenuId:CommandID * 
        commandId:CommandID -> CommandEventHandler 
function GetCommandHandler(
    contextMenuId : CommandID, 
    commandId : CommandID
) : CommandEventHandler

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.Vsip.CommandEventHandler
A command event handler, if found; otherwise, nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ICommandProvider Interface

Microsoft.VisualStudio.TestTools.Vsip Namespace

CommandEventHandler

CommandID