ITypeDiscoveryService.GetTypes(Type, Boolean) 方法

定义

检索可用类型的列表。

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

参数

baseType
Type

要匹配的基类型。 可以为 null

excludeGlobalTypes
Boolean

指示是否应检查所有引用程序集中的类型。

返回

与指定 baseType 条件 excludeGlobalTypes匹配的类型集合。

注解

baseType如果是null,则返回所有类型。 否则,仅返回从指定基类型派生的类型。 excludeGlobalTypes如果是false,将检查所有引用程序集中的类型。 否则,仅检查来自非全局程序集缓存 (GAC) 引用程序集的类型。 有关详细信息,请参阅 “使用程序集”和“全局程序集缓存”。

适用于

另请参阅