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 接口

 

BrowseMessages 方法

不建议使用此方法。请改用 BrowseMessagesByQueue(string) 方法。

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

返回值

可用消息的枚举器。

注释

浏览正在等待的已发送到给定地址的下一个可用消息。address 参数采用 store-id\queue-name 或 queue-name 的形式。正在浏览消息,因此无法对这些消息进行确认。

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

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

另请参见