The RunUnit type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add |
Adds a new instance of a Procedural COBOL program or
Object COBOL Class to the session.
This method is only required if you need to instantiate the class outside of 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 a set of parameters
The parameters are currently restricted to objects or native IL types | |
CallObject |
Executes a program in the new run-unit with a set of parameters
The parameters are currently restricted to objects or native IL types | |
Cancel |
CANCEL's a program
| |
ContainsUserData | Checks if a name is bound to this rununit | |
Dispose |
Dispose method for IDisposable interface which invokes StopRun
| |
Enter |
Associate the current thread with a RunUnit
| |
GetBytes |
Gets the byte[] for a string in the charset of program
| |
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. If an instance does not already exist this call will return
null.
| |
GetInstance(Type, Boolean) |
Given a Type object return the programs instance if the RunUnit knows
about it. If create is true then GetInstance will create an instance of
programType if it doesn't already have one. Otherwise it will return
null should an instance not exist.
| |
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
| |
ToString |
Returns a text summary of the status of the rununit.
(Overrides ObjectToString.) |
See Also