Associate the current thread with a RunUnit
            
Namespace: MicroFocus.COBOL.RuntimeServices
Assembly: MicroFocus.COBOL.RuntimeServices (in MicroFocus.COBOL.RuntimeServices.dll) Version: 1.2.3.4
Syntax
Return Value
Type: IDisposableExceptions
| Exception | Condition | 
|---|---|
| ArgumentException | If runUnit is either null or StopRun has been invoked. | 
Remarks
Remarks
Remarks
Remarks
Examples
RunUnit myRunUnit = new RunUnit(); try { using(myRunUnit.Enter()) { /* Use class that requires RunUnit's */ myCOBOLClass.staticMethod(); // this method uses features that require RunUnit's eg: OpenESQL, CALL, file handling etc.. } } finally { r.StopRun(); }
See Also