AssemblyCatalog AssemblyCatalog AssemblyCatalog AssemblyCatalog Constructors

Definition

Overloads

AssemblyCatalog(Assembly) AssemblyCatalog(Assembly) AssemblyCatalog(Assembly)

Initializes a new instance of the AssemblyCatalog class with the specified assembly.

AssemblyCatalog(String) AssemblyCatalog(String) AssemblyCatalog(String) AssemblyCatalog(String)

Initializes a new instance of the AssemblyCatalog class with the specified code base.

AssemblyCatalog(Assembly, ICompositionElement) AssemblyCatalog(Assembly, ICompositionElement) AssemblyCatalog(Assembly, ICompositionElement)

Initializes a new instance of the AssemblyCatalog class with the specified assembly.

AssemblyCatalog(Assembly, ReflectionContext) AssemblyCatalog(Assembly, ReflectionContext) AssemblyCatalog(Assembly, ReflectionContext)

Initializes a new instance of the AssemblyCatalog class with the specified assembly and reflection context.

AssemblyCatalog(String, ICompositionElement) AssemblyCatalog(String, ICompositionElement) AssemblyCatalog(String, ICompositionElement) AssemblyCatalog(String, ICompositionElement)

Initializes a new instance of the AssemblyCatalog class with the specified code base.

AssemblyCatalog(String, ReflectionContext) AssemblyCatalog(String, ReflectionContext) AssemblyCatalog(String, ReflectionContext)

Initializes a new instance of the AssemblyCatalog class with the specified code base and reflection context.

AssemblyCatalog(Assembly, ReflectionContext, ICompositionElement) AssemblyCatalog(Assembly, ReflectionContext, ICompositionElement) AssemblyCatalog(Assembly, ReflectionContext, ICompositionElement)

Initializes a new instance of the AssemblyCatalog class with the specified assembly and reflection context.

AssemblyCatalog(String, ReflectionContext, ICompositionElement) AssemblyCatalog(String, ReflectionContext, ICompositionElement) AssemblyCatalog(String, ReflectionContext, ICompositionElement)

Initializes a new instance of the AssemblyCatalog class with the specified code base and reflection context.

AssemblyCatalog(Assembly) AssemblyCatalog(Assembly) AssemblyCatalog(Assembly)

Initializes a new instance of the AssemblyCatalog class with the specified assembly.

public:
 AssemblyCatalog(System::Reflection::Assembly ^ assembly);
public AssemblyCatalog (System.Reflection.Assembly assembly);
new System.ComponentModel.Composition.Hosting.AssemblyCatalog : System.Reflection.Assembly -> System.ComponentModel.Composition.Hosting.AssemblyCatalog

Parameters

assembly
Assembly Assembly Assembly Assembly

The assembly that contains the attributed Type objects to add to the AssemblyCatalog object.

Exceptions

assembly is null.

-or-

assembly was loaded in the reflection-only context.

AssemblyCatalog(String) AssemblyCatalog(String) AssemblyCatalog(String) AssemblyCatalog(String)

Initializes a new instance of the AssemblyCatalog class with the specified code base.

public:
 AssemblyCatalog(System::String ^ codeBase);
public AssemblyCatalog (string codeBase);
new System.ComponentModel.Composition.Hosting.AssemblyCatalog : string -> System.ComponentModel.Composition.Hosting.AssemblyCatalog
Public Sub New (codeBase As String)

Parameters

codeBase
String String String String

A string that specifies the code base of the assembly (that is, the path to the assembly file) that contains the attributed Type objects to add to the AssemblyCatalog object.

Exceptions

codeBase is not a valid assembly.

-or-

Version 2.0 or earlier of the common language runtime is currently loaded and codeBase was compiled with a later version.

The caller does not have path discovery permission.

codeBase could not be loaded.

-or-

codeBase specified a directory.

codeBase is a zero-length string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.

The specified path, file name, or both exceed the system-defined maximum length.

Remarks

The assembly referenced by codeBase is loaded into the load context.

AssemblyCatalog(Assembly, ICompositionElement) AssemblyCatalog(Assembly, ICompositionElement) AssemblyCatalog(Assembly, ICompositionElement)

Initializes a new instance of the AssemblyCatalog class with the specified assembly.

public:
 AssemblyCatalog(System::Reflection::Assembly ^ assembly, System::ComponentModel::Composition::Primitives::ICompositionElement ^ definitionOrigin);
public AssemblyCatalog (System.Reflection.Assembly assembly, System.ComponentModel.Composition.Primitives.ICompositionElement definitionOrigin);
new System.ComponentModel.Composition.Hosting.AssemblyCatalog : System.Reflection.Assembly * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Hosting.AssemblyCatalog

Parameters

assembly
Assembly Assembly Assembly Assembly

The assembly that contains the attributed Type objects to add to the AssemblyCatalog object.

definitionOrigin
ICompositionElement ICompositionElement ICompositionElement ICompositionElement

The element used by diagnostics to identify the sources of parts.

Exceptions

assembly or definitionOrigin is null.

-or-

assembly was loaded in the reflection-only context.

AssemblyCatalog(Assembly, ReflectionContext) AssemblyCatalog(Assembly, ReflectionContext) AssemblyCatalog(Assembly, ReflectionContext)

Initializes a new instance of the AssemblyCatalog class with the specified assembly and reflection context.

public:
 AssemblyCatalog(System::Reflection::Assembly ^ assembly, System::Reflection::ReflectionContext ^ reflectionContext);
public AssemblyCatalog (System.Reflection.Assembly assembly, System.Reflection.ReflectionContext reflectionContext);
new System.ComponentModel.Composition.Hosting.AssemblyCatalog : System.Reflection.Assembly * System.Reflection.ReflectionContext -> System.ComponentModel.Composition.Hosting.AssemblyCatalog

Parameters

assembly
Assembly Assembly Assembly Assembly

The assembly that contains the attributed Type objects to add to the AssemblyCatalog object.

reflectionContext
ReflectionContext ReflectionContext ReflectionContext ReflectionContext

The context used by the catalog to interpret types.

Exceptions

assembly or reflectionContext is null.

-or-

assembly was loaded in the reflection-only context.

AssemblyCatalog(String, ICompositionElement) AssemblyCatalog(String, ICompositionElement) AssemblyCatalog(String, ICompositionElement) AssemblyCatalog(String, ICompositionElement)

Initializes a new instance of the AssemblyCatalog class with the specified code base.

public:
 AssemblyCatalog(System::String ^ codeBase, System::ComponentModel::Composition::Primitives::ICompositionElement ^ definitionOrigin);
public AssemblyCatalog (string codeBase, System.ComponentModel.Composition.Primitives.ICompositionElement definitionOrigin);
new System.ComponentModel.Composition.Hosting.AssemblyCatalog : string * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Hosting.AssemblyCatalog
Public Sub New (codeBase As String, definitionOrigin As ICompositionElement)

Parameters

codeBase
String String String String

A string that specifies the code base of the assembly (that is, the path to the assembly file) that contains the attributed Type objects to add to the AssemblyCatalog object.

definitionOrigin
ICompositionElement ICompositionElement ICompositionElement ICompositionElement

The element used by diagnostics to identify the sources of parts.

Exceptions

codeBase is not a valid assembly.

-or-

Version 2.0 or later of the common language runtime is currently loaded and codeBase was compiled with a later version.

The caller does not have path discovery permission.

codeBase could not be loaded.

-or-

codeBase specified a directory.

codeBase is a zero-length string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.

The specified path, file name, or both exceed the system-defined maximum length.

AssemblyCatalog(String, ReflectionContext) AssemblyCatalog(String, ReflectionContext) AssemblyCatalog(String, ReflectionContext)

Initializes a new instance of the AssemblyCatalog class with the specified code base and reflection context.

public:
 AssemblyCatalog(System::String ^ codeBase, System::Reflection::ReflectionContext ^ reflectionContext);
public AssemblyCatalog (string codeBase, System.Reflection.ReflectionContext reflectionContext);
new System.ComponentModel.Composition.Hosting.AssemblyCatalog : string * System.Reflection.ReflectionContext -> System.ComponentModel.Composition.Hosting.AssemblyCatalog

Parameters

codeBase
String String String String

A string that specifies the code base of the assembly (that is, the path to the assembly file) that contains the attributed Type objects to add to the AssemblyCatalog object.

reflectionContext
ReflectionContext ReflectionContext ReflectionContext ReflectionContext

The context used by the catalog to interpret types.

Exceptions

codeBase is not a valid assembly.

-or-

Version 2.0 or later of the common language runtime is currently loaded and codeBase was compiled with a later version.

The caller does not have path discovery permission.

codeBase could not be loaded.

-or-

codeBase specified a directory.

codeBase is a zero-length string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.

The specified path, file name, or both exceed the system-defined maximum length.

AssemblyCatalog(Assembly, ReflectionContext, ICompositionElement) AssemblyCatalog(Assembly, ReflectionContext, ICompositionElement) AssemblyCatalog(Assembly, ReflectionContext, ICompositionElement)

Initializes a new instance of the AssemblyCatalog class with the specified assembly and reflection context.

public:
 AssemblyCatalog(System::Reflection::Assembly ^ assembly, System::Reflection::ReflectionContext ^ reflectionContext, System::ComponentModel::Composition::Primitives::ICompositionElement ^ definitionOrigin);
public AssemblyCatalog (System.Reflection.Assembly assembly, System.Reflection.ReflectionContext reflectionContext, System.ComponentModel.Composition.Primitives.ICompositionElement definitionOrigin);
new System.ComponentModel.Composition.Hosting.AssemblyCatalog : System.Reflection.Assembly * System.Reflection.ReflectionContext * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Hosting.AssemblyCatalog

Parameters

assembly
Assembly Assembly Assembly Assembly

The assembly that contains the attributed Type objects to add to the AssemblyCatalog object.

reflectionContext
ReflectionContext ReflectionContext ReflectionContext ReflectionContext

The context used by the catalog to interpret types.

definitionOrigin
ICompositionElement ICompositionElement ICompositionElement ICompositionElement

The element used by diagnostics to identify the sources of parts.

Exceptions

assembly, definitionOrigin, or reflectionContext is null.

-or-

assembly was loaded in the reflection-only context.

AssemblyCatalog(String, ReflectionContext, ICompositionElement) AssemblyCatalog(String, ReflectionContext, ICompositionElement) AssemblyCatalog(String, ReflectionContext, ICompositionElement)

Initializes a new instance of the AssemblyCatalog class with the specified code base and reflection context.

public:
 AssemblyCatalog(System::String ^ codeBase, System::Reflection::ReflectionContext ^ reflectionContext, System::ComponentModel::Composition::Primitives::ICompositionElement ^ definitionOrigin);
public AssemblyCatalog (string codeBase, System.Reflection.ReflectionContext reflectionContext, System.ComponentModel.Composition.Primitives.ICompositionElement definitionOrigin);
new System.ComponentModel.Composition.Hosting.AssemblyCatalog : string * System.Reflection.ReflectionContext * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Hosting.AssemblyCatalog

Parameters

codeBase
String String String String

A string that specifies the code base of the assembly (that is, the path to the assembly file) that contains the attributed Type objects to add to the AssemblyCatalog object.

reflectionContext
ReflectionContext ReflectionContext ReflectionContext ReflectionContext

The context used by the catalog to interpret types.

definitionOrigin
ICompositionElement ICompositionElement ICompositionElement ICompositionElement

The element used by diagnostics to identify the sources of parts.

Exceptions

codeBase is not a valid assembly.

-or-

Version 2.0 or later of the common language runtime is currently loaded and codeBase was compiled with a later version.

The caller does not have path discovery permission.

codeBase could not be loaded.

-or-

codeBase specified a directory.

codebase, definitionOrigin or reflectionContext is null.

codeBase is a zero-length string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars.

The specified path, file name, or both exceed the system-defined maximum length.

Applies to