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

SQL Anywhere 11.0.1 (Français) » UltraLite - .NET Programming » UltraLite .NET 2.0 API reference » ULDatabaseManager class


SetActiveSyncListener method

Specifies the listener object used to process ActiveSync calls from the MobiLink provider for ActiveSync.

Visual Basic
Public Sub SetActiveSyncListener( _
   ByVal appClassName As String, _
   ByVal listener As ULActiveSyncListener _
public void SetActiveSyncListener(
   string  appClassName,
   ULActiveSyncListener listener
  • appClassName   The unique class name for the application. This is the class name used when the application is registered for use with ActiveSync.

  • listener   The ULActiveSyncListener object. Use null (Nothing in Visual Basic) to remove the previous listener.


The parameter appClassName is the unique identifier used to identify the application. The application can only use one appClassName at a time. While a listener is registered with a particular appClassName, calls to SetServerSyncListener or SetActiveSyncListener with a different appClassName fail.

To remove the ActiveSync listener, call SetActiveSyncListener with a null reference (Nothing in Visual Basic) as the listener parameter.

To remove all listeners, call SetServerSyncListener with a null reference (Nothing in Visual Basic) for all parameters.

Applications should remove all listeners prior to exiting.


For an example of SetActiveSyncListener, see ActiveSyncInvoked method.

See also