Freigeben über


DataViewCommandProvider.CreateSelectionCommand-Methode (CommandID)

Erstellt einen Auswahlmenübefehl für mehrere Knoten im Server-Explorer.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Function CreateSelectionCommand ( _
    commandId As CommandID _
) As MenuCommand
public MenuCommand CreateSelectionCommand(
    CommandID commandId
)
public:
virtual MenuCommand^ CreateSelectionCommand(
    CommandID^ commandId
) sealed
abstract CreateSelectionCommand : 
        commandId:CommandID -> MenuCommand  
override CreateSelectionCommand : 
        commandId:CommandID -> MenuCommand
public final function CreateSelectionCommand(
    commandId : CommandID
) : MenuCommand

Parameter

  • commandId
    Typ: CommandID

    Eine CommandID-Objektinstanz, die eindeutig den Befehl zugeordnet mit dem angegebenen Element in der Datenansichtshierarchie identifiziert.

Rückgabewert

Typ: MenuCommand
Ein MenuCommand-Objekt, das ein Auswahlmenübefehlselement darstellt.

Implementiert

IVsDataViewCommandProvider.CreateSelectionCommand(CommandID)

.NET Framework-Sicherheit

Siehe auch

Referenz

DataViewCommandProvider Klasse

CreateSelectionCommand-Überladung

Microsoft.VisualStudio.Data.Framework-Namespace