Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
准备将发送给另一 QAnywhere 客户端的消息。
Public Sub PutMessage(ByVal address As String, ByVal msg As QAMessage)
public void PutMessage(string address, QAMessage msg)
address 指定目标队列名称的消息的地址。
msg 放入本地消息存储库以进行传输的消息。
QAException 类 如果放入消息时存在问题,则抛出异常。
PutMessage 方法将消息和目标地址插入本地消息存储库中。消息传输的时间取决于 QAnywhere 代理的传输策略。
有关详细信息,请参见确定在客户端进行消息传输的时间。
地址采用 id\queue-name 的形式,其中 id 是目标消息存储库 ID,而 queue-name 则用于标识目标 QAnywhere 客户端用于监听或接收消息的队列。
有关 QAnywhere 地址的详细信息,请参见QAnywhere 消息地址。