BodyWriter.WriteBodyContents Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes out the contents of the message body.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- writer
- Type: System.Xml.XmlDictionaryWriter
The XmlDictionaryWriter used to write out the message body.
| Exception | Condition |
|---|---|
| ArgumentNullException | writer is Nothing. |
The default implementation of WriteBodyContents(XmlDictionaryWriter) calls OnWriteBodyContents(XmlDictionaryWriter), so overriding OnWriteBodyContents(XmlDictionaryWriter) provides the best point of extension.
Show: