RunUnitGetBytes Method

MicroFocus.COBOL.RuntimeServices
Gets the byte[] for a string in the charset of program

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

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[CLSCompliantAttribute(false)]
public byte[] GetBytes(
	Object program,
	string aString
)

Parameters

program
Type: SystemObject
aString
Type: SystemString

Return Value

Type: Byte

Implements

IRunUnitGetBytes(Object, String)
Exceptions

ExceptionCondition
ArgumentExceptionIf StopRun method has already been invoked.
Examples

byte[] rawBytes = myRunUnit.GetBytes(myRunUnit.GetInstance(typeof(Program1), true), "MyBytes");
See Also

Reference