TypeProvider.AddCodeCompileUnit Method (CodeCompileUnit)

 
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 a reference to the CodeCompileUnit to the internal list. This CodeCompileUnit is used for the Type lookup in the GetType method.

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

public void AddCodeCompileUnit(
	CodeCompileUnit codeCompileUnit
)

Parameters

codeCompileUnit
Type: System.CodeDom.CodeCompileUnit

The CodeCompileUnit to add.

Exception Condition
ArgumentNullException

codeCompileUnit is a null reference (Visual Basic Nothing).

ArgumentException

codeCompileUnit is already referenced in this instance.

.NET Framework
Available since 3.0
Return to top
Show: