Read-only. The BodyLength property indicates the length of the message Body in bytes.
Type: | Long |
Run time: | read-only |
object.BodyLength
Syntax Element | Description |
object | Message (MSMQMessage) object that represents the message. |
Length (in bytes) of the message.
BodyLength can be used by the sending application or receiving application.
Sending applications can use BodyLength to find the size of the message body as soon as Body is set, including before and after the message is sent.
Receiving applications can use BodyLength to find the size of a message before or after retrieving the message body.