DesignerActionService.Contains(IComponent) Method
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.
Determines whether the current smart tag service manages the action lists for the specified component.
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
Parameters
- comp
- IComponent
The IComponent to search for.
Returns
true
if the component is managed by the current service; otherwise, false
.
Exceptions
comp
is null
.
Remarks
The Contains method only recognizes push-model smart tags, which are associated to a component with the Add method.
Although there is no structural limitation on the number of concurrent DesignerActionService instances created by a design-time tool, typically only a single instance of the service is created per design surface.