DesignerActionService(IServiceProvider) 构造函数

定义

初始化 DesignerActionService 类的新实例。Initializes a new instance of the DesignerActionService class.

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

参数

serviceProvider
IServiceProvider

当前设计时环境的服务提供程序。The service provider for the current design-time environment.

注解

服务提供程序是监视选择和组件更改所必需的。A service provider is necessary for monitoring selection and component changes. 它应支持IDesignerHostIComponentChangeService类型。It is expected to support the IDesignerHost and IComponentChangeService types. 类使用内部表来管理组件及其关联DesignerActionList的智能标记。 DesignerActionServiceThe DesignerActionService class uses an internal table to manage components and their associated DesignerActionList smart tags.

通常, 组件开发人员无需创建此类的实例;相反, 它们可以通过调用Component.GetService方法获取现有的实例。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.

适用于

另请参阅