RunUnitGUID Property

MicroFocus.COBOL.RuntimeServices
Gets the GUID for this rununit

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

[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public Guid GUID { get; }

Property Value

Type: Guid

Implements

IRunUnitGUID
Exceptions

ExceptionCondition
ArgumentExceptionIf StopRun method has already been invoked.
Examples

The example demonstrates how to create 10 rununits and show a unique id/GUID for each rununit.

using System;
using MicroFocus.COBOL.RuntimeServices;

public class RunUnitIdExample
{
     static void Main(string[] args)
     {
       RunUnit[] myRunUnits = new RunUnit[10];
       try
       {
           for(int c=0; c< RunUnits.Length; c++)
           {
            myRunUnits[c] = new RunUnit();
            Console.WriteLine("RunID : {0} with GUID {1}", myRunUnits[c].RunUnitID, myRunUnits[c].GUID);
           }
       }
       finally
       {
            for(int c=0; c<myRunUnits.Length; c++)
            {
                   myRunUnits[c].StopRun();
        }
       }
     }
}
See Also

Reference