Collapse All Expand All

.NET Framework Class Library
Tibems Class See Also

[TIBCO.EMS .NET client library 5.1 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

Exception | Condition
--- | ---
System..::.ArgumentException | if parameter is null or is a foreign message implementation.
TIBCO.EMS..::.EMSException | if an error occurred while building message wire representation.

# See Also

Tibems Class
TIBCO.EMS Namespace