Tsk.WBS

Tsk.WBS field

Work breakdown structure (WBS) codes.

public static readonly Key<string, TaskKey> WBS;

Examples

Shows how to read task’s WBS codes.

var project = new Project(DataDir + "TaskWBS.mpp");

var collector = new ChildTasksCollector();
TaskUtils.Apply(project.RootTask, collector, 0);

// Parse through all the collected tasks
foreach (var task in collector.Tasks)
{
    Console.WriteLine(task.Get(Tsk.WBS));
    Console.WriteLine(task.Get(Tsk.WBSLevel));
}

See Also