IConnection.IsConnected Property

The IsConnected property gets a value indicating whether the connection is established with the runtime. This property returns true if the connection is established with the runtime system. It returns false if the connection is not established with the runtime.

Namespace – ABSuite.AccessLayer.Connector.Core

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

Syntax

bool IsConnected { get; }

Using the IConnection Interface for the IsConnected Property

The following code is an example of using the IsConnected property:

// Callback method to handle the result of the Connect processing 
void ConnectionComplete(TransmissionObject trObj) 
{
    // Check if the session is connected successfully
    if (ABSConnection.IsConnected)
    {
        SessionConnected = true;
    }
    else
        SessionConnected = false;
}