Click or drag to resize

ProjectLoadFile Method

Load an existing file into the project. This method is used primarily during the loading process and does NOT add a corresponding ProjectFileItem. To add a new file to a project along with a FileItem, use CreateCodeUnit(String). To add an existing file to a project along with a FileItem, use AddExistingFile(String, Boolean, ActionLoadStatus, CodeObject).

Namespace:  Nova.CodeDOM
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
public CodeUnit LoadFile(
	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