Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BodyWriter::OnWriteBodyContents Method (XmlDictionaryWriter^)

 

When implemented, provides an extensibility point when the body contents are written.

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

protected:
virtual void OnWriteBodyContents(
	XmlDictionaryWriter^ writer
) abstract

Parameters

writer
Type: System.Xml::XmlDictionaryWriter^

The XmlDictionaryWriter used to write out the message body.

This method must be implemented by classes derived from BodyWriter. This is the key method that writes the body. If the BodyWriter is buffered then this method is called only once.

The following example illustrates an override of the OnWriteBodyContents(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:
© 2017 Microsoft