ISecurityConnection.IsDisconnected

Syntax

IsDisconnected: Boolean;

Description

The IsDisconnected method returns whether connection with DB server is disconnected.

Comments

If connection with DB server is disconnected, the method returns True, otherwise, False.

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    LoS: ILogonSession;
    User: ISecurityConnection;
    Disconnection: Boolean;
Begin
    MB:=MetabaseClass.Active;
    LoS:=MB.LogonSession;
    User:=LoS.PrimaryConnection;
    Disconnection:=User.IsDisconnected;
    Debug.WriteLine (Disconnection);
End Sub UserProc;

After executing the example if network connection is disconnected, True is displayed in the console, otherwise, False.

See also:

ISecurityConnection