Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
取消具有给定消息 ID 的消息。
Public Sub CancelMessage(ByVal msgid As String)
public void CancelMessage(string msgid)
msgid 要取消的消息的消息 ID。
QAException 类 如果取消消息时存在问题,则抛出异常。
CancelMessage 在消息传输前将其置于已取消状态。当使用 QAnywhere 代理的缺省删除规则时,已取消的消息最终会从消息存储库中删除。
如果消息已经处于最终状态,或已经传输到中央消息传递服务器,则 CancelMessage 失败。
有关删除规则的详细信息,请参见消息删除规则。