Bewerken

Share via


DesignerActionService(IServiceProvider) Constructor

Definition

Initializes a new instance of the DesignerActionService class.

public:
 DesignerActionService(IServiceProvider ^ serviceProvider);
public DesignerActionService (IServiceProvider serviceProvider);
public DesignerActionService (IServiceProvider? serviceProvider);
new System.ComponentModel.Design.DesignerActionService : IServiceProvider -> System.ComponentModel.Design.DesignerActionService
Public Sub New (serviceProvider As IServiceProvider)

Parameters

serviceProvider
IServiceProvider

The service provider for the current design-time environment.

Remarks

A service provider is necessary for monitoring selection and component changes. It is expected to support the IDesignerHost and IComponentChangeService types. The DesignerActionService class uses an internal table to manage components and their associated DesignerActionList smart tags.

Typically, component developers will not need to create an instance of this class; instead, they can acquire an existing instance through a call to the Component.GetService method.

Applies to

See also