WriteBody Method (XmlDictionaryWriter)
Collapse the table of content
Expand the table of content

Message.WriteBody Method (XmlDictionaryWriter)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Writes the body element using the specified XmlDictionaryWriter.

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

public void WriteBody(
	XmlDictionaryWriter writer
)

Parameters

writer
Type: System.Xml.XmlDictionaryWriter
An XmlDictionaryWriter object to be used to write the body element.

ExceptionCondition
ArgumentNullException

writer is null.

This method writes the body contents as well as the start and end tags of the element.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft