DataViewCommandProvider.CreateSelectionCommand, méthode (CommandID)

Crée une commande de menu de sélection de plusieurs nœuds dans l'explorateur de serveurs.

Espace de noms :  Microsoft.VisualStudio.Data.Framework
Assembly :  Microsoft.VisualStudio.Data.Framework (dans Microsoft.VisualStudio.Data.Framework.dll)

Syntaxe

'Déclaration
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

Paramètres

  • commandId
    Type : CommandID

    Une instance de l'objet d' CommandID identificateur seule la commande associée à l'élément spécifié dans la hiérarchie de vue de données.

Valeur de retour

Type : MenuCommand
Un objet d' MenuCommand représentant un élément de commande de menu de sélection.

Implémentations

IVsDataViewCommandProvider.CreateSelectionCommand(CommandID)

Sécurité .NET Framework

Voir aussi

Référence

DataViewCommandProvider Classe

CreateSelectionCommand, surcharge

Microsoft.VisualStudio.Data.Framework, espace de noms