Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » QAnywhere » QAnywhere Reference » QAnywhere .NET API reference » QAnywhere .NET API for clients (.NET 2.0) » QAManagerBase interface


Close method

Closes the connection to the QAnywhere message system and releases any resources used by the QAManagerBase.

Visual Basic
Public Sub Close()
public void Close();

Additional calls to Close() following the first are ignored. Any subsequent calls to a QAManagerBase method, other than Close(), result in a QAException. You must create and open a new QAManagerBase instance in this case.

If a database connection error is detected, you can re-open a QAManager by calling the Close method followed by the Open method. When re-opening a QAManager, you do not need to re-create it, reset the properties, or reset the message listeners. The properties of the QAManager cannot be changed after the first Open, and subsequent Open calls must supply the same acknowledgement mode.

  • QAException class - Thrown if there is a problem closing the QAManagerBase instance.

See also