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


GetNotification method

Block for notification or timeout. Returns event name or null.

Visual Basic
Public Function GetNotification( _
   ByVal queueName As String, _
   ByVal wait_ms As Integer _
) As String
public string  GetNotification(
   string  queueName,
   int wait_ms
  • queueName   The name of the queue which will be waited upon.

  • wait_ms   The time to wait, in milliseconds. Use System.Threading.Timeout.Infinite (-1) for an indefinite wait.


Read an event notification. This call blocks until a notification is received or until the given wait period expires. To wait indefinitely, pass System.Threading.Timeout.Infinite for \p wait_ms. To cancel a wait, send another notification to the given queue or use CancelGetNotification(). After reading a notification, use ReadNotificationParameter() to retrieve additional parameters.

Return null if wait period expired or was canceled; otherwise, returns the event name.

See also