Message.WriteBody Method (XmlWriter)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Serializes the message body using the specified XmlWriter.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- writer
- Type: System.Xml.XmlWriter
The XmlWriter object to be used to write the body of the message.
| Exception | Condition |
|---|---|
| ArgumentNullException | writer is null. |
| ObjectDisposedException | The message is disposed. |
Show: