Collapse All Expand All

.NET Framework Class Library
TextMessage Class See Also

[TIBCO.EMS.UFOCLIENT .NET client library 5.1 documentation]

Clears a message body in preparation for writing

Namespace: TIBCO.EMS.UFO
Assembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.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.

# See Also

TextMessage Class
TIBCO.EMS.UFO Namespace