The IMessage type exposes the following members.

Methods

  NameDescription
Public methodAcknowledge
If using client acknowledgement mode on the session, then this method will acknowledge that the message has been processed correctly.
Public methodClearBody
Clears out the message body. Clearing a message's body does not clear its header values or property entries. If this message body was read-only, calling this method leaves the message body in the same state as an empty body in a newly created message.
Public methodClearProperties
Clears a message's properties. The message's header fields and body are not cleared.

Extension Methods

  NameDescription
Public Extension MethodToObject()()()()Overloaded.
Deserializes the object from Xml, and returns it.
(Defined by MessageExtensions.)
Public Extension MethodToObject<(Of <<'(T>)>>)()()()()Overloaded.
Deserializes the object from Xml, and returns it.
(Defined by MessageExtensions.)

Properties

  NameDescription
Public propertyNMSCorrelationID
The correlation ID used to correlate messages from conversations or long running business processes.
Public propertyNMSDeliveryMode
Whether or not this message is persistent.
Public propertyNMSDestination
The destination of the message. This property is set by the IMessageProducer.
Public propertyNMSMessageId
The message ID which is set by the provider.
Public propertyNMSPriority
The Priority of this message.
Public propertyNMSRedelivered
Returns true if this message has been redelivered to this or another consumer before being acknowledged successfully.
Public propertyNMSReplyTo
The destination that the consumer of this message should send replies to
Public propertyNMSTimestamp
The timestamp of when the message was pubished in UTC time. If the publisher disables setting the timestamp on the message, the time will be set to the start of the UNIX epoc (1970-01-01 00:00:00).
Public propertyNMSTimeToLive
The amount of time for which this message is valid. Zero if this message does not expire.
Public propertyNMSType
The type name of this message.
Public propertyProperties
Provides access to the message properties (headers).

See Also