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

 

GetMessageNoWait 方法

返回下一个发送到给定地址的可用 QAMessage。

语法
Visual Basic
Public Function GetMessageNoWait( _
   ByVal address As String _
) As QAMessage
C#
public QAMessage GetMessageNoWait(
   string  address
);
参数
  • address   此地址指定 QAnywhere 客户端用于接收消息的队列名称。

返回值

返回下一个可用消息;如果没有可用消息,则返回空值。

注释

address 参数指定本地队列名称。地址可以采用 store-id\queue-name 或 queue-name 的形式。如果没有可用消息,则此方法立即返回。使用此方法同步接收消息。有关异步接收消息(使用消息事件处理程序)的详细信息,请参见异步接收消息

异常
另请参见