This documentation is archived and is not being maintained.

Message.WriteMessage Method (XmlWriter)

Serializes the entire message using the specified XmlWriter.

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

public void WriteMessage (
	XmlWriter writer
public void WriteMessage (
	XmlWriter writer
public function WriteMessage (
	writer : XmlWriter
Not applicable.



The XmlWriter object to be used to write the body of the message.

This method serializes the entire message. Once a message is written, it cannot be rewritten unless there is a MessageBuffer for the message.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0