Cancels the message with the given message ID.
Public Sub CancelMessage( _
ByVal msgid As String _
public void CancelMessage(
msgid The message ID of the message to cancel.
CancelMessage puts a message into a cancelled state before it is transmitted. With the default delete rules of the QAnywhere Agent, cancelled messages will eventually be deleted from the message store.
CancelMessage will fail if the message is already in a final state, or if it has been transmitted to the central messaging server.
For more information about delete rules, see Message delete rules.
QAException class - Thrown if there is a problem cancelling the message.