CheckCircuitAlg Method

Check if the specified object was already processed.

Namespace:  Aspose.Tasks.Util
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.11
Syntax
public override void Alg(
	Task el,
	int level
)

Parameters

el
Type: Aspose.TasksTask
Object to process.
level
Type: SystemInt32
Tree node level.

Implements

ITreeAlgorithmTAlg(T, Int32)
Examples
Shows how to detect broken project's structure.
var project = new Project(DataDir + "ParentChildTasks.mpp");

// check the project's structure.
// The <see cref="TasksException"> will be thrown if the project structure is incorrect.
try
{
    TaskUtils.Apply(project.RootTask, new CheckCircuit(), 0);
}
catch (TasksException ex)
{
    Console.WriteLine(ex);
}
See Also