Class PrimaveraXerReader
Contents
[
Hide
]PrimaveraXerReader class
Represents a reader to read Project UIDs from Primavera XER file
public sealed class PrimaveraXerReader : PrimaveraBaseReader
Constructors
Name | Description |
---|---|
PrimaveraXerReader(Stream) | Initializes a new instance of the PrimaveraXerReader class. |
PrimaveraXerReader(string) | Initializes a new instance of the PrimaveraXerReader class. |
Methods
Name | Description |
---|---|
GetProjectInfos() | Return a list of the project’s short info objects. |
GetProjectUids() | Return a list of the projects’ unique identifiers. |
LoadProject(int) | Loads the project with the specified unique identifier. |
Examples
Shows how to examine short projects’ info from a Primavera XER file.
var reader = new PrimaveraXerReader(DataDir + "MultiprojectWithExternal.xer");
var projectInfos = reader.GetProjectInfos();
foreach (var info in projectInfos)
{
Console.WriteLine("{0} - '{1}' - {2}", info.Uid, info.Name, info.ExportFlag);
}
var project = reader.LoadProject(5494);
Console.WriteLine("Loaded project '{0}' with Uid {1}", project.Name, project.Uid);
See Also
- class PrimaveraBaseReader
- namespace Aspose.Tasks
- assembly Aspose.Tasks