LoadProject

PrimaveraBaseReader.LoadProject method

Loads the project with the specified unique identifier.

public Project LoadProject(int projectUid)
ParameterTypeDescription
projectUidInt32Unique identifier of the project to load.

Return Value

Project with specified unique identifier from the specified multi project file. Null if project doesn’t exist.

Examples

Shows how to load a project from a Primavera XML file when project uid is known.

var reader = new PrimaveraXmlReader(DataDir + "PrimaveraProject.xml");
var project = reader.LoadProject(3882);
Console.WriteLine(project.Name);

See Also