BodyWriter::WriteBodyContents Method (XmlDictionaryWriter^)

 

Writes out the contents of the message body.

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

public:
void WriteBodyContents(
	XmlDictionaryWriter^ writer
)

Parameters

writer
Type: System.Xml::XmlDictionaryWriter^

The XmlDictionaryWriter used to write out the message body.

Exception Condition
ArgumentNullException

writer is null.

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

The following sample shows how to call the WriteBodyContents(XmlDictionaryWriter^) method.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: