SyndicationContent.AttributeExtensions 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得這些內容的屬性擴充功能。
public:
property System::Collections::Generic::Dictionary<System::Xml::XmlQualifiedName ^, System::String ^> ^ AttributeExtensions { System::Collections::Generic::Dictionary<System::Xml::XmlQualifiedName ^, System::String ^> ^ get(); };
public System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName,string> AttributeExtensions { get; }
member this.AttributeExtensions : System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, string>
Public ReadOnly Property AttributeExtensions As Dictionary(Of XmlQualifiedName, String)
屬性值
一個包含此物件屬性擴展的字典。
範例
以下 XML 展示了如何為 Atom 1.0 序列 TextSyndicationContent 化一個自訂屬性。
<content type="text" customAttribute="value">Some text content</content>
備註
屬性擴充是未由 Atom 1.0 或 RSS 2.0 規範定義的自訂屬性。 聯播物件模型允許你為聯播內容類型新增自訂屬性(例如, TextSyndicationContent)。 當序列化到 Atom 1.0 時,這些屬性會出現在元素中 <content> 。 當序列化為 RSS 2.0 時,這些屬性會被忽略。