SyndicationItem.WriteAttributeExtensions(XmlWriter, String) 方法

定義

使用指定的新聞訂閱版本,將屬性延伸寫入指定的 XmlWriter

protected public:
 virtual void WriteAttributeExtensions(System::Xml::XmlWriter ^ writer, System::String ^ version);
protected internal virtual void WriteAttributeExtensions (System.Xml.XmlWriter writer, string version);
abstract member WriteAttributeExtensions : System.Xml.XmlWriter * string -> unit
override this.WriteAttributeExtensions : System.Xml.XmlWriter * string -> unit
Protected Friend Overridable Sub WriteAttributeExtensions (writer As XmlWriter, version As String)

參數

writer
XmlWriter

要寫入的目標 XmlReader

version
String

寫入期間要使用的新聞訂閱版本。

備註

屬性延伸是指未由 Atom 1.0 或 RSS 2.0 規格定義的自訂屬性, 它們會序列化為 <entry> 的屬性 (如果是 Atom 1.0) 或 <item> (如果是 RSS 1.0) 項目,視使用的新聞訂閱版本而定。 這個方法是擴充點,可讓您處理自訂屬性延伸的序列化作業。 若要執行這項動作,您必須自 SyndicationItem 衍生類別,並且覆寫這個方法。 這個方法是針對所有無法辨識的屬性延伸來呼叫。

適用於