Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TypeCatalog Constructor (IEnumerable<Type>, ReflectionContext)

.NET Framework 4.6 and 4.5

Initializes a new instance of the TypeCatalog class with the specified types in the specified reflection context.

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

public TypeCatalog(
	IEnumerable<Type> types,
	ReflectionContext reflectionContext
)

Parameters

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

ExceptionCondition
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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft