BodyLength
MSMQMessage

Read-only. The BodyLength property indicates the length of the message Body in bytes.

Quick Info

Type: Long
Run time: read-only

Syntax

object.BodyLength
 
Syntax Element Description
object Message (MSMQMessage) object that represents the message.

Return Values

Length (in bytes) of the message.

Remarks

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.


© 1997 by Microsoft Corporation. All rights reserved.