XmlSerializerOutputFormatter.Serialize 方法

定义

使用传入 xmlSerializer 的 和 xmlWriter序列化值。

protected:
 virtual void Serialize(System::Xml::Serialization::XmlSerializer ^ xmlSerializer, System::Xml::XmlWriter ^ xmlWriter, System::Object ^ value);
protected virtual void Serialize (System.Xml.Serialization.XmlSerializer xmlSerializer, System.Xml.XmlWriter xmlWriter, object value);
protected virtual void Serialize (System.Xml.Serialization.XmlSerializer xmlSerializer, System.Xml.XmlWriter xmlWriter, object? value);
abstract member Serialize : System.Xml.Serialization.XmlSerializer * System.Xml.XmlWriter * obj -> unit
override this.Serialize : System.Xml.Serialization.XmlSerializer * System.Xml.XmlWriter * obj -> unit
Protected Overridable Sub Serialize (xmlSerializer As XmlSerializer, xmlWriter As XmlWriter, value As Object)

参数

xmlSerializer
XmlSerializer

用于序列化 的 value序列化程序。

xmlWriter
XmlWriter

序列化程序用于序列化 的value编写器xmlSerializer

value
Object

要串行化的值。

适用于