PutMessage method

Prepares a message to send to another QAnywhere client.

Syntax
Visual Basic
Public Sub PutMessage( _
   ByVal address As String, _
   ByVal msg As QAMessage _
)
C#
public void PutMessage(
   string  address,
   QAMessage msg
);
Parameters
  • address   The address of the message specifying the destination queue name.

  • msg   The message to put in the local message store for transmission.

Remarks

The PutMessage method inserts a message and a destination address into your local message store. The time of message transmission depends on QAnywhere Agent transmission policies.

For more information, see Determining when message transmission should occur on the client.

The address takes the form id\queue-name, where id is the destination message store ID and queue-name identifies a queue that is used by the destination QAnywhere client to listen for or receive messages.

For more information about QAnywhere addresses, see QAnywhere message addresses.

Exceptions
See also