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 C++ API 参考 » QAManagerBase 类

 

cancelMessage 函数

语法
qa_bool QAManagerBase::cancelMessage(
  qa_const_string msgid
)
参数
  • msgid   要取消消息的 ID。

注释

取消具有给定消息 ID 的消息。

cancelMessage 方法在消息传输前将其置于已取消状态。当使用 QAnywhere 代理的缺省删除规则时,已取消的消息最终会从消息存储库中删除。

如果消息已经处于最终状态,或已经传输到中央消息传递服务器,则 CancelMessage 方法将失败。

有关删除规则的详细信息,请参见消息删除规则

返回值

当且仅当操作成功时返回 true。