Message.WriteBody Message.WriteBody Message.WriteBody Message.WriteBody Method

定义

将正文元素序列化为 XML。Serializes the body element to XML.

重载

WriteBody(XmlDictionaryWriter) WriteBody(XmlDictionaryWriter) WriteBody(XmlDictionaryWriter) WriteBody(XmlDictionaryWriter)

使用指定的 XmlDictionaryWriter 写入正文元素。Writes the body element using the specified XmlDictionaryWriter.

WriteBody(XmlWriter) WriteBody(XmlWriter) WriteBody(XmlWriter) WriteBody(XmlWriter)

使用指定的 XmlWriter 序列化消息正文。Serializes the message body using the specified XmlWriter.

注解

此方法将写入正文内容,以及元素的开始和结束标记。This method writes the body contents as well as the start and end tags of the element.

WriteBody(XmlDictionaryWriter) WriteBody(XmlDictionaryWriter) WriteBody(XmlDictionaryWriter) WriteBody(XmlDictionaryWriter)

使用指定的 XmlDictionaryWriter 写入正文元素。Writes the body element using the specified XmlDictionaryWriter.

public:
 void WriteBody(System::Xml::XmlDictionaryWriter ^ writer);
public void WriteBody (System.Xml.XmlDictionaryWriter writer);
member this.WriteBody : System.Xml.XmlDictionaryWriter -> unit
Public Sub WriteBody (writer As XmlDictionaryWriter)

参数

writer
XmlDictionaryWriter XmlDictionaryWriter XmlDictionaryWriter XmlDictionaryWriter

一个要用于写入正文元素的 XmlDictionaryWriter 对象。An XmlDictionaryWriter object to be used to write the body element.

异常

注解

此方法将写入正文内容,以及元素的开始和结束标记。This method writes the body contents as well as the start and end tags of the element.

WriteBody(XmlWriter) WriteBody(XmlWriter) WriteBody(XmlWriter) WriteBody(XmlWriter)

使用指定的 XmlWriter 序列化消息正文。Serializes the message body using the specified XmlWriter.

public:
 void WriteBody(System::Xml::XmlWriter ^ writer);
public void WriteBody (System.Xml.XmlWriter writer);
member this.WriteBody : System.Xml.XmlWriter -> unit
Public Sub WriteBody (writer As XmlWriter)

参数

writer
XmlWriter XmlWriter XmlWriter XmlWriter

要用于写入消息正文的 XmlWriter 对象。The XmlWriter object to be used to write the body of the message.

异常

注解

此方法将写入正文内容,以及元素的开始和结束标记。This method writes the body contents as well as the start and end tags of the element.

适用于