IConnection.Load Method

The Load method is used to load a specified ispec or class in the runtime system for a session. This is a synchronous call. The calling process is blocked until the method completes.

Namespace – ABSuite.AccessLayer.Connector.Core

Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)

Syntax

TransmissionObject Load(
   string name,
   bool withSwitch = true
)

Arguments

Return Value

If this method succeeds, it returns a TransmissionObject containing the DataModel to load the specified class.

Using the IConnection Interface for the Load Method

The following code shows an example of using the Load() method to load the MENU ispec into the current context:

// Call the Connection Load method with a given ispec name 
   TransmissionObject trObj = ABSConnection.Load("MENU");

// Check the returned TransmissionObject 
   if (trObj != null && (trObj.State == TransmissionReturnCode.Ok || 
trObj.State == TransmissionReturnCode.OkWithSwitch))
            {
                CurrentIspecName = trObj.ObjectClassName;
                CurrentTO = trObj;
            }