Gets a menu command corresponding to the specified CommandID value.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Function GetCommand ( _
commandId As CommandID _
) As MenuCommand
'使用
Dim instance As IVsDataExplorerNode
Dim commandId As CommandID
Dim returnValue As MenuCommand
returnValue = instance.GetCommand(commandId)
MenuCommand GetCommand(
CommandID commandId
)
MenuCommand^ GetCommand(
CommandID^ commandId
)
function GetCommand(
commandId : CommandID
) : MenuCommand
Parameters
commandId
Type: System.ComponentModel.Design.CommandIDA CommandID object containing a numeric command ID and a GUID menu group identifier.
Return Value
Type: System.ComponentModel.Design.MenuCommand
A MenuCommand object as the menu command.
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.