语言

DesignerActionService.Contains(IComponent) 方法

定义

确定当前智能标记服务是否管理指定组件的操作列表。

public:
 bool Contains(System::ComponentModel::IComponent ^ comp);
public bool Contains(System.ComponentModel.IComponent comp);
member this.Contains : System.ComponentModel.IComponent -> bool
Public Function Contains (comp As IComponent) As Boolean

参数

comp
IComponent

要 IComponent 搜索的。

返回

true 如果组件由当前服务管理,则为否则,为 false.

例外

comp 是 null。

注解

该方法 Contains 仅识别推送模型智能标记,这些标记与 Add 该方法关联的组件。

尽管设计时工具创建的并发 DesignerActionService 实例数没有结构限制,但通常每个设计图面只创建一个服务实例。

适用于

另请参阅