แก้ไข

แชร์ผ่าน


DesignerActionService.Contains(IComponent) Method

Definition

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.

Applies to

See also