RegisterForEvent method

Register a queue to get events from an object.

Syntax
Visual Basic

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

public void RegisterForEvent(
   string  eventName,
   string  objectName,
   string  queueName,
   bool registerNotUnReg
);
Parameters
  • 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

Remarks

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