Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
UL Ext: 用于通知或超时的块。
Public Function GetNotification( ByVal queueName As String, ByVal wait_ms As Integer ) As String
public string GetNotification(string queueName, int wait_ms)
queueName 将对其等待的队列的名称。
wait_ms 等待的时间,以毫秒为单位。用 System.Threading.Timeout.Infinite (-1) 表示无限期的等待。
如果等待期过期或等待被取消则返回空值;否则,返回事件名。
ULException 类 发生 SQL 错误。
该方法读取事件通知。此调用将阻塞直到收到通知或给定等待时期到期。要无限期等待,请将 System.Threading.Timeout.Infinite 传递给 wait_ms 参数。要取消等待,发送另一通知到给定队列或使用 CancelGetNotification 方法。读取通知后,使用 ReadNotificationParameter 方法索引附加参数。