Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » QAnywhere » QAnywhere 参考 » QAnywhere .NET API 参考 » 用于客户端的 QAnywhere .NET (.NET 2.0) » QAManagerBase 接口

 

BrowseMessagesByQueue 方法

浏览正在等待的已发送到给定地址的下一条可用消息。

语法
Visual Basic
Public Function BrowseMessagesByQueue( _
   ByVal address As String _
) As System.Collections.IEnumerator
C#
public System.Collections.IEnumerator BrowseMessagesByQueue(
   string  address
);
参数
  • address   消息的地址。

返回值

可用消息的枚举器。

注释

正在浏览消息,因此无法对这些消息进行确认。由于浏览消息会分配本机资源,因此应在完成时调用枚举器的 Reset() 方法。如果不调用此方法,则直到释放此 QAManagerBase 对象时才会释放本地资源。

使用 QAManagerBase.GetMessage 接收消息,以便可以对这些消息进行确认。

另请参见