共用方式為


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

適用於