AssemblyCatalog Constructor (Assembly, ICompositionElement)

AssemblyCatalog Constructor (Assembly, ICompositionElement)

.NET Framework (current version)
 

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

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

public AssemblyCatalog(
	Assembly assembly,
	ICompositionElement definitionOrigin
)

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
Return to top
Show:
© 2016 Microsoft