Udostępnij za pośrednictwem


CommandContextBoundMenuCommand Constructor

Definition

Construct a new CommandContextBoundMenuCommand

public:
 CommandContextBoundMenuCommand(IServiceProvider ^ serviceProvider, EventHandler ^ handler, System::ComponentModel::Design::CommandID ^ id, ... cli::array <Guid> ^ commandContext);
public CommandContextBoundMenuCommand (IServiceProvider serviceProvider, EventHandler handler, System.ComponentModel.Design.CommandID id, params Guid[] commandContext);
new Microsoft.VisualStudio.Modeling.Shell.CommandContextBoundMenuCommand : IServiceProvider * EventHandler * System.ComponentModel.Design.CommandID * Guid[] -> Microsoft.VisualStudio.Modeling.Shell.CommandContextBoundMenuCommand
Public Sub New (serviceProvider As IServiceProvider, handler As EventHandler, id As CommandID, ParamArray commandContext As Guid())

Parameters

serviceProvider
IServiceProvider

Service provider used to get shell services. Necessary to access IMonitorSelectionService.

handler
EventHandler

Handler to execute the command.

id
CommandID

Command id that identifies this menu command.

commandContext
Guid[]

Guid(s) indicating the command context this command is tied to.

Applies to