[TIBCO.EMS .NET client library 8.1 documentation]
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)
Calculates and returns total size of the message wire representation.
Namespace:
TIBCO.EMSAssembly: 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. |