共用方式為


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

    CommandID 物件包含數值命令 ID 和 GUID 的功能表群組識別項。

傳回值

類型:MenuCommand
MenuCommand 物件做為功能表命令。

.NET Framework 安全性

請參閱

參考

IVsDataExplorerNodeSelection 介面

Microsoft.VisualStudio.Data.Services 命名空間