Export (0) Print
Expand All

TypeCatalog Constructor (IEnumerable(Of Type), ICompositionElement)

.NET Framework 4.5

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)

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

Parameters

types
Type: System.Collections.Generic.IEnumerable(Of 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.

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