AssemblyCatalog Constructor (Assembly, ReflectionContext)

.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
)

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.

Exception Condition
ArgumentException

assembly or reflectionContext is null.

-or-

assembly was loaded in the reflection-only context.

.NET Framework
Available since 4.5
Return to top
Show: