TypeProvider.AddAssembly(Assembly) 方法

定义

添加已经加载的程序集。Adds an already-loaded assembly. 调用方负责加载程序集,而且 TypeProvider 包括此程序集中的类型以便在调用 GetType 时进行分配。It is the caller's responsibility to load the assembly, and TypeProvider includes the types from this assembly for dispensing when GetType is called.

public:
 void AddAssembly(System::Reflection::Assembly ^ assembly);
public void AddAssembly (System.Reflection.Assembly assembly);
member this.AddAssembly : System.Reflection.Assembly -> unit

参数

assembly
Assembly

要为其添加引用的 AssemblyThe Assembly to add a reference for.

异常

assembly 为空引用(在 Visual Basic 中为 Nothing)。assembly is a null reference (Visual Basic Nothing).

适用于