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.
Namespace:
Kaazing.JMSAssembly: Kaazing.JMS (in Kaazing.JMS.dll)
Syntax
| Visual Basic |
|---|
ReadOnly Property BodyLength As Long Get |
| C# |
|---|
long BodyLength { get; } |
| Visual C++ |
|---|
property long long BodyLength { long long get (); } |
Return Value
number of bytes in the message
Exceptions
| Exception | Condition |
|---|---|
| Kaazing.JMS..::..JMSException | if the JMS provider fails to read the message due to some internal error. |
| Kaazing.JMS..::..MessageNotReadableException | if the message is in write-only mode. |