TIBCO Enterprise Message Service 4.3.0 .NET Client Class Library

Tibems.GetMessageBodySize Method 

Returns the total wire size of the message body for a message which was received or sent.

public static int GetMessageBodySize(
   Message msg
);

Remarks

If a message was modified after it has been received, or if a message was created by the application but never sent, this method will produce incorrect result. In those cases call calculateMessageSize() before calling this method. If the body of the message is compressed, this method returns the size of the compressed wire representation.
For complete details, see the corresponding item in the book TIBCO Enterprise Message Service .NET Reference.

Exceptions

Exception Type Condition
ArgumentException if parameter is null or is a foreign message implementation.

See Also

Tibems Class | TIBCO.EMS Namespace