AssemblyCatalog Constructor (Assembly^, ICompositionElement^)
.NET Framework (current version)
Initializes a new instance of the AssemblyCatalog class with the specified assembly.
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
Parameters
- assembly
-
Type:
System.Reflection::Assembly^
The assembly that contains the attributed Type objects to add to the AssemblyCatalog object.
- definitionOrigin
-
Type:
System.ComponentModel.Composition.Primitives::ICompositionElement^
The element used by diagnostics to identify the sources of parts.
| Exception | Condition |
|---|---|
| ArgumentException | assembly or definitionOrigin is null. -or- assembly was loaded in the reflection-only context. |
.NET Framework
Available since 4.5
Available since 4.5
Show: