Tsk.ActivityId
Tsk.ActivityId field
Represents activity id field - a task’s unique identifier used by Primavera. (only applicable to Primavera projects).
public static readonly Key<string, TaskKey> ActivityId;
Examples
Shows how to work with ActivityId field specific to Primavera projects
var project = new Project(DataDir + "test.xer");
var task = project.RootTask.Children.GetById(1);
Console.WriteLine("Task activity_id: {0}", task.Get(Tsk.ActivityId));
task.Set(Tsk.ActivityId, "CUSTOM_ACTIVITY_ID");
// create Primavera save options and specify that ActivityIds should not be overwritten during saving.
var options = new PrimaveraSaveOptions
{
RenumberActivityIds = false
};
project.Save(OutDir + "WorkWithPrimaveraActivityId_out.xer", options);
See Also
- struct Key<T,K>
- enum TaskKey
- class Tsk
- namespace Aspose.Tasks
- assembly Aspose.Tasks