WebLogic Messaging API Class Library

IBytesMessage.BodyLength Property

Gets the number of bytes of the message body when the message is in read-only mode as a long. 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.

 BodyLength {get;}

Exceptions

Exception Type Condition
MessageException if JMS fails to read the message due to some internal error.
MessageNotReadableException if the message is in write-only mode.

See Also

IBytesMessage Interface | WebLogic.Messaging Namespace