共用方式為


XmlSerializerOutputFormatter.Serialize 方法

定義

使用 傳入 xmlSerializerxmlWriter 的 序列化值。

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

要序列化的值。

適用於