共用方式為


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

參數

傳回值

型別:System.ComponentModel.Design.MenuCommand
MenuCommand 物件做為功能表命令。

.NET Framework 安全性

請參閱

參考

IVsDataExplorerNodeSelection 介面

Microsoft.VisualStudio.Data.Services 命名空間