RunUnitActive Property

MicroFocus.COBOL.RuntimeServices
Gets a bool to show if the rununit is active or not.

Namespace:  MicroFocus.COBOL.RuntimeServices
Assembly:  MicroFocus.COBOL.RuntimeServices (in MicroFocus.COBOL.RuntimeServices.dll) Version: 1.2.3.4
Syntax

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public bool Active { get; }

Property Value

Type: Boolean

Implements

IRunUnitActive
Exceptions

ExceptionCondition
ArgumentExceptionIf StopRun method has already been invoked.
Examples

Console.WriteLine(myRunUnit.DiagnosticStatus);
Console.WriteLine("The run unit is " + (myRunUnit.Active ? "active" : "ended"));
myRunUnit.StopRun();
Console.WriteLine("The run unit is " + (myRunUnit.Active ? "active" : "ended"));
Console.WriteLine(myRunUnit.DiagnosticStatus);
Console.WriteLine(myRunUnit);
See Also

Reference