Message.ToByteArray
Method
Visual Basic
Public FunctionToByteArray
(
) As Byte()
C#
public byte[] ToByteArray
()
Purpose
Extract the data from a message as a byte sequence.
Remarks
This method returns a copy of the message data as a byte sequence, suitable for archiving in a file. To reconstruct the message from bytes, see Message.
The byte data includes the message header and all message fields in Rendezvous wire format. It does not include address information, such as the subject and reply subject, nor certified delivery information.
The byte sequence can contain interior null bytes.