The IMessage type exposes the following members.
Methods
Name | Description | |
---|---|---|
Acknowledge |
If using client acknowledgement mode on the session, then this method will acknowledge that the
message has been processed correctly.
| |
ClearBody |
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.
| |
ClearProperties |
Clears a message's properties.
The message's header fields and body are not cleared.
|
Extension Methods
Name | Description | |
---|---|---|
ToObject()()()() | Overloaded.
Deserializes the object from Xml, and returns it.
(Defined by MessageExtensions.) | |
ToObject<(Of <<'(T>)>>)()()()() | Overloaded.
Deserializes the object from Xml, and returns it.
(Defined by MessageExtensions.) |
Properties
Name | Description | |
---|---|---|
NMSCorrelationID |
The correlation ID used to correlate messages from conversations or long running business processes.
| |
NMSDeliveryMode |
Whether or not this message is persistent.
| |
NMSDestination |
The destination of the message. This property is set by the IMessageProducer.
| |
NMSMessageId |
The message ID which is set by the provider.
| |
NMSPriority |
The Priority of this message.
| |
NMSRedelivered |
Returns true if this message has been redelivered to this or another consumer before being acknowledged successfully.
| |
NMSReplyTo |
The destination that the consumer of this message should send replies to
| |
NMSTimestamp |
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).
| |
NMSTimeToLive |
The amount of time for which this message is valid. Zero if this message does not expire.
| |
NMSType |
The type name of this message.
| |
Properties |
Provides access to the message properties (headers).
|