CommonProgram class | QSYS API Reference Guide

Defines the core behavior of programs and service programs.

Namespace: ASNA.QSys.Runtime.JobSupport Assembly: ASNA.QSys.Runtime.dll

Inheritance: Object –> Module

Constructors

Name Description
CommonProgram() Called from constructors in derived classes to initializes the common program class.
CommonProgram(CommonProgram) Called from constructors in derived classes to initializes the common program class.

CommonProgram()

Called from constructors in derived classes to initializes the common program class.

CommonProgram()

CommonProgram(CommonProgram)

Called from constructors in derived classes to initializes the common program class.

CommonProgram(CommonProgram)

Parameters

Type Parameter name Description
CommonProgram containerProgram If the program is used a module, this parameter is a reference to the program using it. Defaults to null.

Methods

Signature Description
Dispose(Boolean) Called to release the managed and unmanaged resources used by the current instance of the CommonProgram class.
[GetModule()](#t-getmodule-t) Gets a constituent module of this program.
[GetServiceModule()](#t-getservicemodule-t) Gets a constituent module of one of the service programs being used by this program.

void Dispose(bool disposing)

Called to release the managed and unmanaged resources used by the current instance of the CommonProgram class.

void Dispose(bool disposing)

Parameters

Type Parameter name Description
Boolean disposing true to release managed and unmanaged resources; false to release only unmanaged resources.

T GetModule()

Gets a constituent module of this program.

T GetModule<T>()

T GetServiceModule()

Gets a constituent module of one of the service programs being used by this program.

T GetServiceModule<T>()