Message.WriteMessage Method (XmlDictionaryWriter)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Serializes the entire message using the specified XmlDictionaryWriter.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- writer
- Type: System.Xml.XmlDictionaryWriter
An XmlDictionaryWriter object to be used to write the message.
| Exception | Condition |
|---|---|
| ArgumentNullException | writer is null. |
| ObjectDisposedException | The message is closed. |
| InvalidOperationException | The message has been copied, read or written. |
This method serializes the entire message. Once a message is written, it cannot be rewritten unless a MessageBuffer instance exists for the message.
Show: