SyndicationFeed.WriteAttributeExtensions(XmlWriter, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的 syndication 版本,將屬性 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)
參數
- version
- String
寫作時使用的聯播版本。
備註
屬性擴充是未由 Atom 1.0 或 RSS 2.0 規範定義的自訂屬性。 它們會序列化為(Atom 1.0)或<feed>(RSS 1.0)元素的屬性<rss>,這取決於所使用的聯播版本。 這個方法是一個擴充點,讓你能處理自訂屬性擴充的序列化。 為此,你必須從此方法推導出一個類別 SyndicationFeed 並覆寫。 此方法用於所有未識別的屬性擴充。