XElement.IXmlSerializable.WriteXml(XmlWriter) 方法

定义

将对象转换为其 XML 表示形式。

 virtual void System.Xml.Serialization.IXmlSerializable.WriteXml(System::Xml::XmlWriter ^ writer) = System::Xml::Serialization::IXmlSerializable::WriteXml;
void IXmlSerializable.WriteXml (System.Xml.XmlWriter writer);
abstract member System.Xml.Serialization.IXmlSerializable.WriteXml : System.Xml.XmlWriter -> unit
override this.System.Xml.Serialization.IXmlSerializable.WriteXml : System.Xml.XmlWriter -> unit
Sub WriteXml (writer As XmlWriter) Implements IXmlSerializable.WriteXml

参数

writer
XmlWriter

将此对象序列化到的 XmlWriter

实现

注解

此方法在内部用于封送包含 LINQ to XML 对象的对象图。 有关序列化包含 LINQ to XML 对象的对象图的示例,请参阅 序列化包含 XElement 对象的对象图

适用于