This documentation is archived and is not being maintained.

IComponentDiscoveryService Interface

Enables enumeration of components at design time.

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

public interface class IComponentDiscoveryService

The IComponentDiscoveryService type exposes the following members.

  NameDescription
Public methodGetComponentTypesGets the list of available component types.
Top

The default implementation of the IComponentDiscoveryService interface enables design-time enumeration of components in the Toolbox.

You could provide a custom implementation that enumerates across other types available at design time. For example, your implementation could enumerate the components that are present in a particular designer.

The following code example demonstrates how to use IComponentDiscoveryService to find all the types that derive from the ScrollableControl type.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: