BodyLength
MSMQMessage

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

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.

Each MSMQ message can have no more than 4 MB of data.

QuickInfo

  Windows NT: Requires version 4.0 SP3 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mqoai.h.
  Import Library: Use mqoa.lib.
  Unicode: Defined only as Unicode.