Namespace:
Apache.NMS
Assembly: Apache.NMS (in Apache.NMS.dll)
Assembly: Apache.NMS (in Apache.NMS.dll)
Syntax
| Visual Basic |
|---|
ReadOnly Property BodyLength As Long Get |
| C# |
|---|
long BodyLength { get; } |
| Visual C++ |
|---|
property long long BodyLength { long long get (); } |
| JavaScript |
|---|
function get_bodyLength(); |
Field Value
Gets the number of bytes of the message body when the message is in read-only mode. The value returned can be used to allocate a byte array. The value returned is the entire length of the message body, regardless of where the pointer for reading the message is currently located.
Exceptions
| Exception | Condition |
|---|---|
| Apache.NMS..::..MessageNotReadableException | Thrown when the Message is in write-only mode. |
| Apache.NMS..::..NMSException | Thrown when there is an unhandled exception thrown from the provider. |