WriteBodyContents Method
Collapse the table of content
Expand the table of content

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.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

'Declaration
Public Sub WriteBodyContents ( _
	writer As XmlDictionaryWriter _
)

Parameters

writer
Type: System.Xml.XmlDictionaryWriter
The XmlDictionaryWriter used to write out the message body.

ExceptionCondition
ArgumentNullException

writer is Nothing.

The default implementation of WriteBodyContents(XmlDictionaryWriter) calls OnWriteBodyContents(XmlDictionaryWriter), so overriding OnWriteBodyContents(XmlDictionaryWriter) provides the best point of extension.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft