ComponentCatalog.RegisterAssembly(Assembly, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers all the components in the specified assembly by looking for loadable classes and adding them to the catalog.
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)
Parameters
- assembly
- Assembly
The assembly to register.
- throwOnError
- Boolean
true to throw an exception if there are errors with registering the components; false to skip any errors.