ITypeDiscoveryService.GetTypes Method (Type, Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Retrieves the list of available types.

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

ICollection GetTypes(
	Type baseType,
	bool excludeGlobalTypes


Type: System.Type

The base type to match. Can be null.

Type: System.Boolean

Indicates whether types from all referenced assemblies should be checked.

Return Value

Type: System.Collections.ICollection

A collection of types that match the criteria specified by baseType and excludeGlobalTypes.

If baseType is null, all types are returned. Otherwise, only types derived from the specified base type are returned. If excludeGlobalTypes is false, types from all referenced assemblies are checked. Otherwise, only types from non-Global Assembly Cache (GAC) referenced assemblies are checked. For more information, see Working with Assemblies and the Global Assembly Cache.

.NET Framework
Available since 2.0
Return to top