[TIBCO.EMS .NET client library 7.0 documentation]

Calculates and returns total size of the message wire representation.

Namespace:  TIBCO.EMS
Assembly:  TIBCO.EMS (in TIBCO.EMS.dll)

Syntax

public static int CalculateMessageSize(
	Message msg
)
Public Shared Function CalculateMessageSize ( _
	msg As Message _
) As Integer
public:
static int CalculateMessageSize(
	Message^ msg
)

Parameters

msg
Type: TIBCO.EMS..::.Message
Compute the size of this message.

Remarks

The total size includes headers, properties and body.

This method re-measures the message, and caches the results; contrast Tibems.GetMessageSize.

This method might consume process storage, and might involve disk I/O—with associated performance penalties.

This method always creates internally the actual wire format of the message regardless of the state of the message.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionif parameter is null or is a foreign message implementation.
TIBCO.EMS..::.EMSExceptionif an error occurred while building message wire representation.

See Also