Udostępnij za pośrednictwem


Konstruktor CommandContextBoundMenuCommand —

Inicjuje nowe wystąpienie CommandContextBoundMenuCommand klasy.

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.Shell
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (w Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Składnia

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

Parametry

  • commandContext
    Typ: array<System.Guid[]
    GUID(s), wskazujące kontekst polecenia, do której przypisany jest to polecenie.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

CommandContextBoundMenuCommand Klasa

Przestrzeń nazw Microsoft.VisualStudio.Modeling.Shell