语言

AssemblyCatalog 构造函数

定义

初始化 AssemblyCatalog 类的新实例。

重载

名称 说明
AssemblyCatalog(Assembly)

使用指定的程序集初始化类的新实例 AssemblyCatalog 。

AssemblyCatalog(String)

使用指定的代码库初始化类的新实例 AssemblyCatalog 。

AssemblyCatalog(Assembly, ICompositionElement)

使用指定的程序集初始化类的新实例 AssemblyCatalog 。

AssemblyCatalog(Assembly, ReflectionContext)

使用指定的程序集和反射上下文初始化类的新实例 AssemblyCatalog 。

AssemblyCatalog(String, ICompositionElement)

使用指定的代码库初始化类的新实例 AssemblyCatalog 。

AssemblyCatalog(String, ReflectionContext)

使用指定的代码基和反射上下文初始化类的新实例 AssemblyCatalog 。

AssemblyCatalog(Assembly, ReflectionContext, ICompositionElement)

使用指定的程序集和反射上下文初始化类的新实例 AssemblyCatalog 。

AssemblyCatalog(String, ReflectionContext, ICompositionElement)

使用指定的代码基和反射上下文初始化类的新实例 AssemblyCatalog 。

AssemblyCatalog(Assembly)

Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs

使用指定的程序集初始化类的新实例 AssemblyCatalog 。

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
Public Sub New (assembly As Assembly)

参数

assembly
Assembly

包含要添加到对象的Type特性化AssemblyCatalog对象的程序集。

例外

assembly 是 null。

-或-

assembly 是在仅反射上下文中加载的。

适用于

AssemblyCatalog(String)

Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs

使用指定的代码库初始化类的新实例 AssemblyCatalog 。

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)

参数

codeBase
String

一个字符串,指定程序集(即程序集文件的路径)的代码库,其中包含要添加到Type对象的特性化AssemblyCatalog对象。

例外

codeBase 不是有效的程序集。

-或-

公共语言运行时的版本 2.0 或更早版本当前已加载,并且 codeBase 已使用更高版本进行编译。

调用方没有路径发现权限。

codeBase 无法加载。

-或-

codeBase 指定了目录。

codeBase 是 null。

找不到 codeBase。

codeBase 是一个零长度字符串,仅包含空格,或包含一个或多个无效字符,由 InvalidPathChars该字符串定义。

指定的路径、文件名或两者都超过了系统定义的最大长度。

注解

所 codeBase 引用的程序集将加载到加载上下文中。

适用于

AssemblyCatalog(Assembly, ICompositionElement)

Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs

使用指定的程序集初始化类的新实例 AssemblyCatalog 。

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
Public Sub New (assembly As Assembly, definitionOrigin As ICompositionElement)

参数

assembly
Assembly

包含要添加到对象的Type特性化AssemblyCatalog对象的程序集。

definitionOrigin
ICompositionElement

诊断用于标识部件源的元素。

例外

assembly 或 definitionOrigin 为 null.

-或-

assembly 是在仅反射上下文中加载的。

适用于

AssemblyCatalog(Assembly, ReflectionContext)

Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs

使用指定的程序集和反射上下文初始化类的新实例 AssemblyCatalog 。

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
Public Sub New (assembly As Assembly, reflectionContext As ReflectionContext)

参数

assembly
Assembly

包含要添加到对象的Type特性化AssemblyCatalog对象的程序集。

reflectionContext
ReflectionContext

目录用于解释类型的上下文。

例外

assembly 或 reflectionContext 为 null.

-或-

assembly 是在仅反射上下文中加载的。

适用于

AssemblyCatalog(String, ICompositionElement)

Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs

使用指定的代码库初始化类的新实例 AssemblyCatalog 。

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)

参数

codeBase
String

一个字符串,指定程序集(即程序集文件的路径)的代码库,其中包含要添加到Type对象的特性化AssemblyCatalog对象。

definitionOrigin
ICompositionElement

诊断用于标识部件源的元素。

例外

codeBase 不是有效的程序集。

-或-

公共语言运行时的版本 2.0 或更高版本当前已加载,并且 codeBase 已使用更高版本进行编译。

调用方没有路径发现权限。

codeBase 无法加载。

-或-

codeBase 指定了目录。

codeBase 或 definitionOrigin 为 null.

找不到 codeBase。

codeBase 是一个零长度字符串,仅包含空格,或包含一个或多个无效字符,由 InvalidPathChars该字符串定义。

指定的路径、文件名或两者都超过了系统定义的最大长度。

注解

引用 codeBase 的程序集将加载到 Load 上下文中。

适用于

AssemblyCatalog(String, ReflectionContext)

Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs

使用指定的代码基和反射上下文初始化类的新实例 AssemblyCatalog 。

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
Public Sub New (codeBase As String, reflectionContext As ReflectionContext)

参数

codeBase
String

一个字符串,指定程序集(即程序集文件的路径)的代码库,其中包含要添加到Type对象的特性化AssemblyCatalog对象。

reflectionContext
ReflectionContext

目录用于解释类型的上下文。

例外

codeBase 不是有效的程序集。

-或-

公共语言运行时的版本 2.0 或更高版本当前已加载,并且 codeBase 已使用更高版本进行编译。

调用方没有路径发现权限。

codeBase 无法加载。

-或-

codeBase 指定了目录。

codeBase 或 reflectionContext 为 null.

找不到 codeBase。

codeBase 是一个零长度字符串,仅包含空格,或包含一个或多个无效字符,由 InvalidPathChars该字符串定义。

指定的路径、文件名或两者都超过了系统定义的最大长度。

注解

引用codebase 的程序集将加载到 Load 上下文中。

适用于

AssemblyCatalog(Assembly, ReflectionContext, ICompositionElement)

Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs

使用指定的程序集和反射上下文初始化类的新实例 AssemblyCatalog 。

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
Public Sub New (assembly As Assembly, reflectionContext As ReflectionContext, definitionOrigin As ICompositionElement)

参数

assembly
Assembly

包含要添加到对象的Type特性化AssemblyCatalog对象的程序集。

reflectionContext
ReflectionContext

目录用于解释类型的上下文。

definitionOrigin
ICompositionElement

诊断用于标识部件源的元素。

例外

assembly, definitionOrigin或 reflectionContext 为 null。

-或-

assembly 是在仅反射上下文中加载的。

适用于

AssemblyCatalog(String, ReflectionContext, ICompositionElement)

Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs
Source:
AssemblyCatalog.cs

使用指定的代码基和反射上下文初始化类的新实例 AssemblyCatalog 。

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
Public Sub New (codeBase As String, reflectionContext As ReflectionContext, definitionOrigin As ICompositionElement)

参数

codeBase
String

一个字符串,指定程序集(即程序集文件的路径)的代码库,其中包含要添加到Type对象的特性化AssemblyCatalog对象。

reflectionContext
ReflectionContext

目录用于解释类型的上下文。

definitionOrigin
ICompositionElement

诊断用于标识部件源的元素。

例外

codeBase 不是有效的程序集。

-或-

公共语言运行时的版本 2.0 或更高版本当前已加载,并且 codeBase 已使用更高版本进行编译。

调用方没有路径发现权限。

codeBase 无法加载。

-或-

codeBase 指定了目录。

codeBase或 definitionOriginreflectionContext 为 null。

找不到 codeBase。

codeBase 是一个零长度字符串,仅包含空格,或包含一个或多个无效字符,由 InvalidPathChars该字符串定义。

指定的路径、文件名或两者都超过了系统定义的最大长度。

注解

引用 codebase 的程序集将加载到 Load 上下文中。

适用于