DesignerActionService.Contains Method

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

Namespace: System.ComponentModel.Design
Assembly: System.Design (in system.design.dll)

public:
bool Contains (
	IComponent^ comp
)
public boolean Contains (
	IComponent comp
)
public function Contains (
	comp : IComponent
) : boolean
Not applicable.

Parameters

comp

The IComponent to search for.

Return Value

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

Exception typeCondition

ArgumentNullException

comp is a null reference (Nothing in Visual Basic).

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: