[TIBCO.EMS .NET client library 6.3 documentation]
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)
Clears a message body in preparation for writing
Namespace:
TIBCO.EMSAssembly: TIBCO.EMS (in TIBCO.EMS.dll)
Syntax
public override void ClearBody() |
Public Overrides Sub ClearBody |
public: virtual void ClearBody() override |
Remarks
When a client receives a TextMessage, it is in read-only mode. If a client attempts to write to the message at this point, a MessageNotWriteableException is thrown.
Calling ClearBody clears the body of a text message, but leaves its header and property values unchanged. If the text message body was read-only, calling ClearBody makes the message writable. The message body appears and behaves identically to an empty body in a newly created message.