Portable interface for IRunUnit
            
Namespace: MicroFocus.COBOL.RuntimeServices
Assembly: MicroFocus.COBOL.RuntimeServices (in MicroFocus.COBOL.RuntimeServices.dll) Version: 1.2.3.4
Syntax
The IRunUnit type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
|  | Active | 
            Gets a bool to show if the rununit is active or not.
             | 
|  | CommandLine | 
            Sets the command line for the programs executing in the RunUnit
             | 
|  | DiagnosticStatus | 
             Returns a Diagnostic message about the status of this rununit
             | 
|  | GUID | 
            Gets the GUID for this rununit
             | 
|  | RunUnitID | 
            Gets a unique long to identify this rununit
             | 
|  | Switches | 
            Sets the switches for the programs executing in the RunUnit
             | 
Methods
| Name | Description | |
|---|---|---|
|  | Add | 
            Adds a new instance of a Procedural COBOL program or Object COBOL Class to the session.
             | 
|  | Call(String) | 
            Executes a program in the new run-unit with no parameters
             | 
|  | Call(String, Object) | 
            Executes a program in the new run-unit with parameters
             | 
|  | CallObject | 
            Executes a program in the new run-unit with parameters returning an obect
             | 
|  | Cancel | 
            CANCEL's a program from the rununit
             | 
|  | ContainsUserData | Checks if a name is bound to this rununit | 
|  | GetBytes | 
            Gets a string that matches the charset of the program using an index/count
             | 
|  | GetBytesCount | 
            Gets the length/size of a byte[] for a string in the charset of program
             | 
|  | GetEnvironmentVariable | 
            Gets the contents of the specified environment variable
             | 
|  | GetInstance(Type) | 
            Given a Type object return the programs instance if the RunUnit knows about it.
             | 
|  | GetInstance(Type, Boolean) | 
            Given a Type object return the programs instance if the RunUnit knows about it and optionally creates it.
             | 
|  | GetString(Object, Byte) | 
            Gets a string that matches the charset of the program 
             | 
|  | GetString(Object, Byte, Int32, Int32) | 
            Gets a string that matches the charset of the program using an index/count
             | 
|  | GetUserData | Returns the object bound with the specific name to the rununit | 
|  | IsCOBOLProgram | 
            Given a Class object return true if the Class contains anything that is CALLable.
             | 
|  | SetEnvironmentVariable | 
            Sets the contents of specified environment variable to the value given.
             | 
|  | SetUserData | Binds an object to this rununit using the name specified | 
|  | StopRun | 
            Terminates the Run Unit
             | 
|  | StopRun(Int32) | 
            Terminates the Run Unit using the supplied return code value
             | 
See Also