共用方式為


DataViewCommandProvider.CreateSelectionCommand 方法 (CommandID, array<Object[])

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

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

語法

'宣告
Protected Overridable Function CreateSelectionCommand ( _
    commandId As CommandID, _
    parameters As Object() _
) As MenuCommand
protected virtual MenuCommand CreateSelectionCommand(
    CommandID commandId,
    Object[] parameters
)
protected:
virtual MenuCommand^ CreateSelectionCommand(
    CommandID^ commandId, 
    array<Object^>^ parameters
)
abstract CreateSelectionCommand : 
        commandId:CommandID * 
        parameters:Object[] -> MenuCommand  
override CreateSelectionCommand : 
        commandId:CommandID * 
        parameters:Object[] -> MenuCommand
protected function CreateSelectionCommand(
    commandId : CommandID, 
    parameters : Object[]
) : MenuCommand

參數

  • commandId
    類型:CommandID

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

  • parameters
    類型:array<Object[]

    參數是與這個命令的使用。

傳回值

類型:MenuCommand
表示選取功能表項目的 MenuCommand 物件。

.NET Framework 安全性

請參閱

參考

DataViewCommandProvider 類別

CreateSelectionCommand 多載

Microsoft.VisualStudio.Data.Framework 命名空間