Job.Dispose Method

Releases resources used by the Job object.

Syntax

BegSr Dispose Access(*Public) Type(void)
   DclSrParm disposing Type(*Boolean)      

Parameters

disposing
Boolean. Set true to release both managed and unmanaged resources; otherwise set false to release just unmanaged resources.

Remarks

When the Job is being disposed of, it can no longer be referenced. Even though the instance of a Job object is disposed of, it is still in memory until removed through garbage collection.

Examples

 BegSr Dispose Access(*Public)Modifier(*Overrides)
    DclSrParm disposing Type(*Boolean)
    If disposing
      Disconnect MyDatabase
      Disconnect MyPrinterDB
      Close SDP100D
    EndIf *Base.Dispose(Disposing)
EndSr

Requirements

Namespace: ASNA.Monarch
Assembly: ASNA.VisualRPG.Runtime.
Platforms: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 10 Pro