PrimaveraXmlReader
Contents
[
Hide
]
PrimaveraXmlReader class
Represents a reader which allows to retrieve Project UIDs from Primavera Xml file.
public class PrimaveraXmlReader : PrimaveraBaseReader
Constructors
Name | Description |
---|---|
PrimaveraXmlReader(Stream) | Initializes a new instance of the PrimaveraXmlReader class. |
PrimaveraXmlReader(string) | Initializes a new instance of the PrimaveraXmlReader class. |
Methods
Name | Description |
---|---|
GetProjectUids() | Return a list of the projects’ unique identifiers. |
LoadProject(int) | Loads the project with the specified unique identifier. |
Examples
Shows how to import a project from a Primavera XML file.
var reader = new PrimaveraXmlReader(DataDir + "primavera.xml");
List<int> projectUids = reader.GetProjectUids();
foreach (var projectUid in projectUids)
{
Console.WriteLine("Project UID: " + projectUid);
}
See Also
- class PrimaveraBaseReader
- namespace Aspose.Tasks
- assembly Aspose.Tasks