Freigeben über


CommandContextBoundMenuCommand-Konstruktor

Initialisiert eine neue Instanz der CommandContextBoundMenuCommand-Klasse.

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

Syntax

'Declaration
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
)

Parameter

  • commandContext
    Typ: array<System.Guid[]
    Die GUID, die den Kontext des Befehls angeben, dem dieser Befehl zugeordnet ist.

.NET Framework-Sicherheit

Siehe auch

Referenz

CommandContextBoundMenuCommand Klasse

Microsoft.VisualStudio.Modeling.Shell-Namespace