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

SQL Anywhere 11.0.0 » UltraLite - .NET Programming » UltraLite .NET 2.0 API Reference » ULDatabaseManager class


SetGlobalListener method

Specifies the listener objects used to process global synchronization and SQL pass-through messages.

Visual Basic

Public Sub SetGlobalListener( _
   ByVal syncListener As ULSyncProgressListener, _
   ByVal sqlListener As ULSqlPassthroughProgressListener _

public void SetGlobalListener(
   ULSyncProgressListener syncListener,
   ULSqlPassthroughProgressListener sqlListener
  • syncListener   The ULSyncProgressListener object that implements SyncProgressed(), which is called for global synchronization messages.

  • sqlListener   The ULSqlPassthroughProgressListener object that implements ScriptProgressed(), which is called as each SQL pass-through script is executed.


When the SYNCHRONIZE profileName SQL statement is executed, its progress messages are routed to syncListener, if not null (Nothing in Visual Basic).

A number of SQL scripts may be available and automatically executed when a database is connected. Also, scripts may be passed down in a subsequent synchronization, and executed directly with ULConnection.ExecuteSQLPassthroughScripts(). In either case, script progress messages will be routed to sqlListener, if not null (Nothing in Visual Basic).

To remove either listener pass a null reference in a call to SetGlobalListener. As of 11.0, applications no longer need to remove listeners before exiting.

See also