Επεξεργασία

Κοινή χρήση μέσω


ITypeDiscoveryService.GetTypes(Type, Boolean) Method

Definition

Retrieves the list of available types.

public:
 System::Collections::ICollection ^ GetTypes(Type ^ baseType, bool excludeGlobalTypes);
public System.Collections.ICollection GetTypes (Type baseType, bool excludeGlobalTypes);
public System.Collections.ICollection GetTypes (Type? baseType, bool excludeGlobalTypes);
abstract member GetTypes : Type * bool -> System.Collections.ICollection
Public Function GetTypes (baseType As Type, excludeGlobalTypes As Boolean) As ICollection

Parameters

baseType
Type

The base type to match. Can be null.

excludeGlobalTypes
Boolean

Indicates whether types from all referenced assemblies should be checked.

Returns

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

Remarks

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.

Applies to

See also