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.JMS
Assembly:  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

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to read the message due to some internal error.
Kaazing.JMS..::..MessageNotReadableExceptionif the message is in write-only mode.

See Also