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
'使用
Dim instance As ICommandProvider
Dim contextMenuId As CommandID
Dim commandId As CommandID
Dim returnValue As CommandEventHandler
returnValue = instance.GetCommandHandler(contextMenuId, _
commandId)
CommandEventHandler GetCommandHandler(
CommandID contextMenuId,
CommandID commandId
)
CommandEventHandler^ GetCommandHandler(
CommandID^ contextMenuId,
CommandID^ commandId
)
function GetCommandHandler(
contextMenuId : CommandID,
commandId : CommandID
) : CommandEventHandler
Parameters
- contextMenuId
Type: System.ComponentModel.Design.CommandID
- commandId
Type: System.ComponentModel.Design.CommandID
Return Value
Type: Microsoft.VisualStudio.TestTools.Vsip.CommandEventHandler
Permissions
- 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.