CheckCircuit Class

Checks a tree (of tasks) whether it contains a circuit.
Inheritance Hierarchy
SystemObject
  Aspose.Tasks.UtilCheckCircuit

Namespace:  Aspose.Tasks.Util
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.10
Syntax
public class CheckCircuit : ITreeAlgorithm<Task>

The CheckCircuit type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleCheckCircuit
Initializes a new instance of the CheckCircuit class.
Methods
  NameDescription
Public methodCode exampleAlg
Check if the specified object was already processed.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode examplePostAlg
Do nothing.
Public methodCode examplePreAlg
Do nothing.
Public methodToString (Inherited from Object.)
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