[TIBCO.EMS .NET client library 7.0 documentation]
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)
Returns the total wire size of the message headers for a message
which was received or sent.
Namespace:
TIBCO.EMSAssembly: TIBCO.EMS (in TIBCO.EMS.dll)
Syntax
public static int GetMessageHeadersSize( Message msg ) |
Public Shared Function GetMessageHeadersSize ( _ msg As Message _ ) As Integer |
public: static int GetMessageHeadersSize( Message^ msg ) |
Parameters
- msg
- Type: TIBCO.EMS..::.Message
The message for which to return the size of the message headers.
Return Value
The total size of the message headers.
Remarks
The size is implicitly measured and cached when an inbound message arrives at the client, and when the client sends an outbound message. If the client modifies a message, or creates a message but never sends it, then this method could yield an incorrect cached value. To explicitly force a new measurement and cache its results, call Tibems.CalculateMessageSize; then the method yields the correct value.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentException | if parameter is null or is a foreign message implementation. |