NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Serializing a DataSet into a Message

The Dataset formatter allows you to easily persist a dataset into a message and send it to queues in your Message Queuing enterprise. When you send a dataset as a message, you first create your dataset using ADO+. You then create an instance of the MessageQueue component, set the formatter appropriately, and send your message like you would any other message.

To persist a dataset into a message

  1. Create your dataset.
  2. Create an instance of the MessageQueue component and set its Path property to the queue to which you want to refer. For details, see Creating MessageQueue Components.
  3. Set the Formatter property to DataSetMessageFormatter.
  4. Send your message normally:

See Also

Sending and Serializing Messages | Creating MessageQueue Components | Message Serialization