DesignerActionService(IServiceProvider) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.