Clears out the message body. Clearing a message's body does not clear
its header values or property entries.
Namespace:
Kaazing.JMSIf 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.
Assembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
Sub ClearBody |
| C# |
|---|
void ClearBody() |
| Visual C++ |
|---|
void ClearBody() |
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to clear the message body due to some internal error. |