Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TypeCatalog Constructor (IEnumerable(Type), ReflectionContext, ICompositionElement)

TypeCatalog Constructor (IEnumerable(Of Type), ReflectionContext, ICompositionElement)

.NET Framework 4.6 and 4.5

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

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

'Declaration
Public Sub New ( _
	types As IEnumerable(Of Type), _
	reflectionContext As ReflectionContext, _
	definitionOrigin As ICompositionElement _
)

Parameters

types
Type: System.Collections.Generic.IEnumerable(Of Type)

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

reflectionContext
Type: System.Reflection.ReflectionContext

The context used to interpret the types.

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

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

ExceptionCondition
ArgumentNullException

types is Nothing.

ArgumentException

types contains an element that is Nothing.

-or-

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

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft