IVsDataExplorerNode.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

参数

返回值

类型:System.ComponentModel.Design.MenuCommand
MenuCommand 对象作为菜单命令。

.NET Framework 安全性

请参见

参考

IVsDataExplorerNode 接口

Microsoft.VisualStudio.Data.Services 命名空间