TypeCatalog Constructor (IEnumerable<Type>, ICompositionElement)

.NET Framework (current version)
 

Initializes a new instance of the TypeCatalog class with the specified types and source for parts.

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

new : 
        types:IEnumerable<Type> *
        definitionOrigin:ICompositionElement -> TypeCatalog

Parameters

types
Type: System.Collections.Generic.IEnumerable<Type>

A collection of attributed Type objects to add to the TypeCatalog object.

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

An element used by diagnostics to identify the source for parts.

Exception Condition
ArgumentNullException

types is null.

ArgumentException

types contains an element that is null.

-or-

types contains an element that was loaded in the reflection-only context.

.NET Framework
Available since 4.5
Return to top
Show: