IVsDataExplorerNodeSelection.GetCommand 方法

获取菜单命令与所选节点的组的指定 CommandID 值相对应。

命名空间:  Microsoft.VisualStudio.Data.Services
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
Function GetCommand ( _
    commandId As CommandID _
) As MenuCommand
MenuCommand GetCommand(
    CommandID commandId
)
MenuCommand^ GetCommand(
    CommandID^ commandId
)
abstract GetCommand : 
        commandId:CommandID -> MenuCommand
function GetCommand(
    commandId : CommandID
) : MenuCommand

参数

  • commandId
    类型:CommandID

    包含数字命令ID和GUID菜单组标识符的 CommandID 对象。

返回值

类型:MenuCommand
MenuCommand 对象作为菜单命令。

.NET Framework 安全性

请参阅

参考

IVsDataExplorerNodeSelection 接口

Microsoft.VisualStudio.Data.Services 命名空间