The NMS Class Library (.Net Messaging Library)

MarshallAware.GetMarshalledForm Method 

byte[] GetMarshalledForm(
   OpenWireFormat wireFormat
);

See Also

MarshallAware Interface | ActiveMQ.Commands Namespace