TypeCatalog Constructor (IEnumerable(Of Type), ReflectionContext)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 Sub New (
	types As IEnumerable(Of Type),
	reflectionContext As ReflectionContext
)

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.

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: