Click or drag to resize

ProjectAddExistingFile Method

Add an existing file to the project. A corresponding ProjectFileItem is also created.

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public CodeUnit AddExistingFile(
	string fileName,
	bool isGenerated = false,
	Action<LoadStatus, CodeObject> statusCallback = null
)

Parameters

fileName
Type: SystemString
isGenerated (Optional)
Type: SystemBoolean
statusCallback (Optional)
Type: SystemActionLoadStatus, CodeObject

Return Value

Type: CodeUnit
The new CodeUnit object.
See Also