PrimaveraDbSettings.ProjectId
PrimaveraDbSettings.ProjectId property
Gets id of the project to read.
public int ProjectId { get; }
Examples
Shows how to import a project from a Primavera database.
// Initialize a new instance of the PrimaveraDbSettings class with connection string and project id
var settings = new PrimaveraDbSettings(GetConnectionString(), 4502);
Console.WriteLine("Project UID to read: " + settings.ProjectId);
// read the project with UID = 4502
var project = new Project(settings);
Console.WriteLine(project.Uid);
Console.WriteLine(project.Name);
Console.WriteLine(project.PrimaveraProperties.ShortName);
See Also
- class PrimaveraDbSettings
- namespace Aspose.Tasks.Connectivity
- assembly Aspose.Tasks