WriteBodyContents Method

Message.WriteBodyContents Method

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

Serializes the body content using the specified XmlDictionaryWriter.

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

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

Parameters

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

ExceptionCondition
ArgumentNullException

writer is Nothing.

ObjectDisposedException

The message is closed.

InvalidOperationException

The message has been copied, read or written.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft