CommandContextBoundMenuCommand Constructor

Initializes a new instance of the CommandContextBoundMenuCommand class.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaração
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
)
public:
CommandContextBoundMenuCommand(
    IServiceProvider^ serviceProvider, 
    EventHandler^ handler, 
    CommandID^ id, 
    ... array<Guid>^ commandContext
)
new : 
        serviceProvider:IServiceProvider * 
        handler:EventHandler * 
        id:CommandID * 
        commandContext:Guid[] -> CommandContextBoundMenuCommand
public function CommandContextBoundMenuCommand(
    serviceProvider : IServiceProvider, 
    handler : EventHandler, 
    id : CommandID, 
    ... commandContext : Guid[]
)

Parameters

  • commandContext
    Type: array<System.Guid[]
    The GUID(s) that indicate the command context to which this command is assigned.

.NET Framework Security

See Also

Reference

CommandContextBoundMenuCommand Class

Microsoft.VisualStudio.Modeling.Shell Namespace