TypeProvider.AddAssembly Method (Assembly)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 M:System.Workflow.ComponentModel.Compiler.TypeProvider.GetType is called.

Namespace:   System.Workflow.ComponentModel.Compiler
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public void AddAssembly(
	Assembly assembly
)

Parameters

assembly
Type: System.Reflection.Assembly

The Assembly to add a reference for.

Exception Condition
ArgumentNullException

assembly is a null reference (Visual Basic Nothing).

.NET Framework
Available since 3.0
Return to top
Show: