Partager via


CommandContextBoundMenuCommand, constructeur

Initialise une nouvelle instance de la classe CommandContextBoundMenuCommand.

Espace de noms :  Microsoft.VisualStudio.Modeling.Shell
Assembly :  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (dans Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    serviceProvider As IServiceProvider, _
    handler As EventHandler, _
    id As CommandID, _
    ParamArray commandContext As Guid() _
)
public CommandContextBoundMenuCommand(
    IServiceProvider serviceProvider,
    EventHandler handler,
    CommandID id,
    params Guid[] commandContext
)

Paramètres

  • serviceProvider
    Type : System.IServiceProvider
    Le fournisseur de services qui extrait des services de Visual Studio.
  • commandContext
    Type : array<System.Guid[]
    GUID qui indiquent le contexte de commande dont cette commande est assignée.

Sécurité .NET Framework

Voir aussi

Référence

CommandContextBoundMenuCommand Classe

Microsoft.VisualStudio.Modeling.Shell, espace de noms