Compartir a través de


CommandContextBoundMenuCommand (Constructor)

Inicializa una nueva instancia de la clase CommandContextBoundMenuCommand.

Espacio de nombres:  Microsoft.VisualStudio.Modeling.Shell
Ensamblado:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (en Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Sintaxis

'Declaración
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
)

Parámetros

  • serviceProvider
    Tipo: System.IServiceProvider
    Proveedor de servicios que recupera los servicios de Visual Studio.
  • commandContext
    Tipo: array<System.Guid[]
    GUID que indican el contexto de comando al que se asigna este comando.

Seguridad de .NET Framework

Vea también

Referencia

CommandContextBoundMenuCommand Clase

Microsoft.VisualStudio.Modeling.Shell (Espacio de nombres)