RunUnitGetUserData Method

MicroFocus.COBOL.RuntimeServices
Returns the object bound with the specific name to the rununit

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

public Object GetUserData(
	string name
)

Parameters

name
Type: SystemString
name of the object bound to this rununit

Return Value

Type: Object
the found object

Implements

IRunUnitGetUserData(String)
Exceptions

ExceptionCondition
ArgumentExceptionIf StopRun method has already been invoked or.
Remarks

NOTE:COBOL programs can use CBL_MANAGED_SESSION_GET_USERDATA
Examples

myExtraData = myRunUnit.GetUserData("MyExtraData") as MyExtraData;
See Also

Reference