共用方式為


IVsDataViewCommandProvider.CreateSelectionCommand 方法

建立多個節點來選取功能表命令在 [伺服器總管] 中。

命名空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Function CreateSelectionCommand ( _
    commandId As CommandID _
) As MenuCommand
MenuCommand CreateSelectionCommand(
    CommandID commandId
)
MenuCommand^ CreateSelectionCommand(
    CommandID^ commandId
)
abstract CreateSelectionCommand : 
        commandId:CommandID -> MenuCommand
function CreateSelectionCommand(
    commandId : CommandID
) : MenuCommand

參數

  • commandId
    類型:CommandID

    唯一識別命令的 CommandID 物件執行個體與指定的資料項目檢視階層架構。

傳回值

類型:MenuCommand
MenuCommand 物件表示功能表命令項目的或 nullnull 參考 (即 Visual Basic 中的 Nothing) ,如果命令未建立。

.NET Framework 安全性

請參閱

參考

IVsDataViewCommandProvider 介面

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空間