RunUnitSetUserData Method

MicroFocus.COBOL.RuntimeServices
Binds an object to this rununit using the name specified

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

public void SetUserData(
	string name,
	Object value
)

Parameters

name
Type: SystemString
the name to which the object is bound; cannot be null
value
Type: SystemObject
the object to be bound or null to remove it

Implements

IRunUnitSetUserData(String, Object)
Remarks

NOTE: It is recommenced the name include a prefix that is specific to your application to ensure the name is unique
Remarks

NOTE:COBOL programs can use CBL_MANAGED_SESSION_SET_USERDATA
Examples

myRunUnit.SetUserData("MyExtraData", myExtraData);
See Also

Reference