ComponentCatalog.RegisterAssembly(Assembly, Boolean) 方法

定義

透過尋找可載入類別並將其加入目錄,對指定組件的所有元件進行登錄。

public void RegisterAssembly(System.Reflection.Assembly assembly, bool throwOnError = true);
member this.RegisterAssembly : System.Reflection.Assembly * bool -> unit
Public Sub RegisterAssembly (assembly As Assembly, Optional throwOnError As Boolean = true)

參數

assembly
Assembly

集會登記。

throwOnError
Boolean

true,若元件註冊錯誤則拋出例外;false 以跳過任何錯誤。

適用於