RegistrationServices.GetRegistrableTypesInAssembly(Assembly) 方法

定义

在通过调用 RegisterAssembly(Assembly, AssemblyRegistrationFlags) 注册的程序集中检索类的列表。

public:
 virtual cli::array <Type ^> ^ GetRegistrableTypesInAssembly(System::Reflection::Assembly ^ assembly);
public virtual Type[] GetRegistrableTypesInAssembly (System.Reflection.Assembly assembly);
[System.Security.SecurityCritical]
public virtual Type[] GetRegistrableTypesInAssembly (System.Reflection.Assembly assembly);
abstract member GetRegistrableTypesInAssembly : System.Reflection.Assembly -> Type[]
override this.GetRegistrableTypesInAssembly : System.Reflection.Assembly -> Type[]
[<System.Security.SecurityCritical>]
abstract member GetRegistrableTypesInAssembly : System.Reflection.Assembly -> Type[]
override this.GetRegistrableTypesInAssembly : System.Reflection.Assembly -> Type[]
Public Overridable Function GetRegistrableTypesInAssembly (assembly As Assembly) As Type()

参数

assembly
Assembly

要搜索类的程序集。

返回

Type[]

Type 数组,它包含 assembly 中的类的列表。

实现

属性

例外

assembly 参数为 null

适用于