TypeCatalog Constructors

Definition

Initializes a new instance of the TypeCatalog class.

Overloads

TypeCatalog(IEnumerable<Type>)

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

TypeCatalog(Type[])

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

TypeCatalog(IEnumerable<Type>, ICompositionElement)

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

TypeCatalog(IEnumerable<Type>, ReflectionContext)

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

TypeCatalog(IEnumerable<Type>, ReflectionContext, ICompositionElement)

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

TypeCatalog(IEnumerable<Type>)

Source:
TypeCatalog.cs
Source:
TypeCatalog.cs
Source:
TypeCatalog.cs

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

public:
 TypeCatalog(System::Collections::Generic::IEnumerable<Type ^> ^ types);
public TypeCatalog (System.Collections.Generic.IEnumerable<Type> types);
new System.ComponentModel.Composition.Hosting.TypeCatalog : seq<Type> -> System.ComponentModel.Composition.Hosting.TypeCatalog
Public Sub New (types As IEnumerable(Of Type))

Parameters

types
IEnumerable<Type>

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

Exceptions

types is null.

types contains an element that is null.

-or-

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

Applies to

TypeCatalog(Type[])

Source:
TypeCatalog.cs
Source:
TypeCatalog.cs
Source:
TypeCatalog.cs

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

public:
 TypeCatalog(... cli::array <Type ^> ^ types);
public TypeCatalog (params Type[] types);
new System.ComponentModel.Composition.Hosting.TypeCatalog : Type[] -> System.ComponentModel.Composition.Hosting.TypeCatalog
Public Sub New (ParamArray types As Type())

Parameters

types
Type[]

An array of attributed Type objects to add to the TypeCatalog object.

Exceptions

types is null.

types contains an element that is null.

-or-

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

Applies to

TypeCatalog(IEnumerable<Type>, ICompositionElement)

Source:
TypeCatalog.cs
Source:
TypeCatalog.cs
Source:
TypeCatalog.cs

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

public:
 TypeCatalog(System::Collections::Generic::IEnumerable<Type ^> ^ types, System::ComponentModel::Composition::Primitives::ICompositionElement ^ definitionOrigin);
public TypeCatalog (System.Collections.Generic.IEnumerable<Type> types, System.ComponentModel.Composition.Primitives.ICompositionElement definitionOrigin);
new System.ComponentModel.Composition.Hosting.TypeCatalog : seq<Type> * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Hosting.TypeCatalog
Public Sub New (types As IEnumerable(Of Type), definitionOrigin As ICompositionElement)

Parameters

types
IEnumerable<Type>

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

definitionOrigin
ICompositionElement

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

Exceptions

types is null.

types contains an element that is null.

-or-

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

Applies to

TypeCatalog(IEnumerable<Type>, ReflectionContext)

Source:
TypeCatalog.cs
Source:
TypeCatalog.cs
Source:
TypeCatalog.cs

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

public:
 TypeCatalog(System::Collections::Generic::IEnumerable<Type ^> ^ types, System::Reflection::ReflectionContext ^ reflectionContext);
public TypeCatalog (System.Collections.Generic.IEnumerable<Type> types, System.Reflection.ReflectionContext reflectionContext);
new System.ComponentModel.Composition.Hosting.TypeCatalog : seq<Type> * System.Reflection.ReflectionContext -> System.ComponentModel.Composition.Hosting.TypeCatalog
Public Sub New (types As IEnumerable(Of Type), reflectionContext As ReflectionContext)

Parameters

types
IEnumerable<Type>

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

reflectionContext
ReflectionContext

The context used to interpret the types.

Exceptions

types is null.

types contains an element that is null.

-or-

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

Applies to

TypeCatalog(IEnumerable<Type>, ReflectionContext, ICompositionElement)

Source:
TypeCatalog.cs
Source:
TypeCatalog.cs
Source:
TypeCatalog.cs

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

public:
 TypeCatalog(System::Collections::Generic::IEnumerable<Type ^> ^ types, System::Reflection::ReflectionContext ^ reflectionContext, System::ComponentModel::Composition::Primitives::ICompositionElement ^ definitionOrigin);
public TypeCatalog (System.Collections.Generic.IEnumerable<Type> types, System.Reflection.ReflectionContext reflectionContext, System.ComponentModel.Composition.Primitives.ICompositionElement definitionOrigin);
new System.ComponentModel.Composition.Hosting.TypeCatalog : seq<Type> * System.Reflection.ReflectionContext * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Hosting.TypeCatalog
Public Sub New (types As IEnumerable(Of Type), reflectionContext As ReflectionContext, definitionOrigin As ICompositionElement)

Parameters

types
IEnumerable<Type>

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

reflectionContext
ReflectionContext

The context used to interpret the types.

definitionOrigin
ICompositionElement

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

Exceptions

types is null.

types contains an element that is null.

-or-

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

Applies to