Partager via


CommandSet Constructor

Definition

Initializes a new instance of the CommandSet class.

public CommandSet (Microsoft.VisualStudio.Extensibility.VisualStudioExtensibility extensibility, Microsoft.VisualStudio.Extensibility.Extension container, IServiceProvider serviceProvider, Microsoft.VisualStudio.Extensibility.Commands.ICommandSetFactory commandSetFactory);
new Microsoft.VisualStudio.Extensibility.Commands.CommandSet : Microsoft.VisualStudio.Extensibility.VisualStudioExtensibility * Microsoft.VisualStudio.Extensibility.Extension * IServiceProvider * Microsoft.VisualStudio.Extensibility.Commands.ICommandSetFactory -> Microsoft.VisualStudio.Extensibility.Commands.CommandSet
Public Sub New (extensibility As VisualStudioExtensibility, container As Extension, serviceProvider As IServiceProvider, commandSetFactory As ICommandSetFactory)

Parameters

extensibility
VisualStudioExtensibility

Extensibility instance.

container
Extension

Extension instance that can be used for sharing state across parts.

serviceProvider
IServiceProvider

Extension host service provider.

commandSetFactory
ICommandSetFactory

Factory instance that is used to create the command set (could be same as container instance).

Applies to