IMessage Methods

Solclient

IMessage Methods
version: 7.2.1.27

The IMessage type exposes the following members.

Methods
  Name Description
Public method CreateUserPropertyMap
Creates a user property map (of type IMapContainer) in the meta header of a message. Any existing user property map is overwritten. After adding user properties to this map, it must be closed; if not, it is automatically closed after the associated message is disposed IDisposable.

Whether it is explicitly closed by the client application, or implicitly by the API, any attempt to use this map results in an OperationErrorException with ParamNullReference

Public method Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public method Dump
Returns a string representation of the contents of a message in human-readable form.
Public method Dump(MessageDump)
Returns a string representation of the contents of a message in human-readable form. Dump(MessageDump.Full) is equivalent to calling Dump().
Public method GetBinaryAttachment
Gets the binary attachment part of the message. If not present, null is returned to the user.
Public method GetDestinationTopicSuffix
A getter for the suffix of the topic string. If the received message contains a topic destination and the topic begins with the session's topic prefix, this method returns the string following the '/' delimiter that terminates the topic prefix. Returns null if not present.
Public method GetUserData
Gets the user data part of the message. Returns null if not present.
Public method GetXmlContent
Gets the XML content part of the message. Returns null if not present.
Public method Reset
Release all memory associated with this message, returning it to its original state, as if it has just been created.
Public method SetAsReplyMessage
Sets the reply attribute of the message.
Public method SetBinaryAttachment
Sets the binary attachment part of the message.
Public method SetReplyToSuffix
Appends an application-specific suffix to the default topic destination for the session. When the session is established, a unique topic destination is created for the session. This topic is generated by the appliance, and the API subscribes to a wildcard extended topic that is derived by appending './>' to the unique topic destination.
Public method SetUserData
Sets the user data part of the message.
Public method SetXmlContent
Sets the XML content part of the message.
Top
See Also