Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of the CommandContextBoundMenuCommand class.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.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
)
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
serviceProvider
Type: IServiceProviderThe service provider that retrieves Visual Studio services.
handler
Type: EventHandlerThe event handler that executes the command.
id
Type: CommandIDThe command ID that is assigned to the menu command.
commandContext
Type: array<Guid[]The GUID(s) that indicate the command context to which this command is assigned.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.