WebLogic Messaging API Class Library

IMessage.ClearBody\xA0Method\xA0

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.

void\xA0ClearBody();

Exceptions

Exception TypeCondition
MessageExceptionif JMS fails to clear the message body due to some internal error.

See Also

IMessage Interface | WebLogic.Messaging Namespace