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 » ULConnection class


RegisterForEvent method

Register a queue to get events from an object.

Visual Basic

Public Sub RegisterForEvent( _
   ByVal eventName As String, _
   ByVal objectName As String, _
   ByVal queueName As String, _
   ByVal registerNotUnReg As Boolean _

public void RegisterForEvent(
   string  eventName,
   string  objectName,
   string  queueName,
   bool registerNotUnReg
  • eventName   The event name.

  • objectName   The object name to which event applies. For example, a table name.

  • queueName   The event queue name to be used.

  • registerNotUnReg   TO BE DONE


Register (a queue) to receive notifications of an event. If no queue name is supplied, the default connection queue is implied, and created if required. Certain system events allow specification of an object name to which the event applies. For example, the TableModified event can specify the table name. Unlike SendNotification(), only the specific queue registered will receive notifications of the event - other queues with the same name on different connections will not (unless they are also explicit registered). Throws error if queue or event does not exist

See also