Compartir a través de


CommandSetFactory Class

Definition

Provides a base class to create factories for command sets. This class is intented to be used by source generators.

public class CommandSetFactory : Microsoft.VisualStudio.Extensibility.Commands.ICommandSetFactory, Microsoft.VisualStudio.Extensibility.IServiceFactory
type CommandSetFactory = class
    interface ICommandSetFactory
    interface IServiceFactory
Public Class CommandSetFactory
Implements ICommandSetFactory, IServiceFactory
Inheritance
CommandSetFactory
Implements

Constructors

CommandSetFactory(IServiceProvider)

Initializes a new instance of the CommandSetFactory class.

Properties

ServiceMoniker

Gets the ServiceMoniker for the ICommandSetProvider that this provides.

Methods

CreateAsync(ServiceMoniker, ServiceActivationOptions, IServiceProvider, AuthorizationServiceClient, Type, Type, CancellationToken)

Creates the service instance of T when requested.

GetServiceDescriptor(ServiceMoniker)

Gets the description of a service.

InitializeCommandsAsync(CommandSet)

Called when command set is about to be initialized. This can be used to add commands, set up initial state.

Applies to