System.ComponentModel.Design.DesignerActionService.Contains Method

Determines whether the current smart tag service manages the action lists for the specified component.

Syntax

public bool Contains (System.ComponentModel.IComponent comp)

Parameters

comp
The System.ComponentModel.IComponent to search for.

Returns

true if the component is managed by the current service; otherwise, false.

Remarks

The DesignerActionService.Contains(System.ComponentModel.IComponent) method only recognizes push-model smart tags, which are associated to a component with the erload:System.ComponentModel.Design.DesignerActionService.Add method.

Although there is no structural limitation on the number of concurrent System.ComponentModel.Design.DesignerActionService instances created by a design-time tool, typically only a single instance of the service is created per design surface.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0