Editar

Compartilhar via


TypeProvider.AddAssembly(Assembly) Method

Definition

Adds an already-loaded assembly. 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
Public Sub AddAssembly (assembly As Assembly)

Parameters

assembly
Assembly

The Assembly to add a reference for.

Exceptions

assembly is a null reference (Visual Basic Nothing).

Applies to