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 错误。
读取事件通知。此调用将阻塞直到收到通知或给定等待时期到期。要进行无限期的等待,对于 \p wait_ms 传递 System.Threading.Timeout.Infinite。要取消等待,则将另一个通知发送到给定队列或使用 CancelGetNotification。读取通知后,使用 ReadNotificationParameter() 来检索其它参数。