共用方式為


XmlSerializer.CreateWriter 方法

定義

在衍生類別中覆寫時,傳回用於序列化物件的寫入器。

protected:
 virtual System::Xml::Serialization::XmlSerializationWriter ^ CreateWriter();
protected virtual System.Xml.Serialization.XmlSerializationWriter CreateWriter ();
abstract member CreateWriter : unit -> System.Xml.Serialization.XmlSerializationWriter
override this.CreateWriter : unit -> System.Xml.Serialization.XmlSerializationWriter
Protected Overridable Function CreateWriter () As XmlSerializationWriter

傳回

XmlSerializationWriter

實作 XmlSerializationWriter 類別的執行個體。

例外狀況

當方法在子代類別中未覆寫時,會嘗試存取該方法。

適用於