AssemblyCatalog Constructor (Assembly^, ReflectionContext^, ICompositionElement^)

.NET Framework (current version)
 

Initializes a new instance of the AssemblyCatalog class with the specified assembly and reflection context.

Namespace:   System.ComponentModel.Composition.Hosting
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public:
AssemblyCatalog(
	Assembly^ assembly,
	ReflectionContext^ reflectionContext,
	ICompositionElement^ definitionOrigin
)

Parameters

assembly
Type: System.Reflection::Assembly^

The assembly that contains the attributed Type objects to add to the AssemblyCatalog object.

reflectionContext
Type: System.Reflection::ReflectionContext^

The context used by the catalog to interpret types.

definitionOrigin
Type: System.ComponentModel.Composition.Primitives::ICompositionElement^

The element used by diagnostics to identify the sources of parts.

Exception Condition
ArgumentException

assembly, definitionOrigin, or reflectionContext is null.

-or-

assembly was loaded in the reflection-only context.

.NET Framework
Available since 4.5
Return to top
Show: