语言

SyndicationContent.AttributeExtensions 属性

定义

获取此内容的属性扩展。

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 演示如何将添加到实例的 TextSyndicationContent 自定义属性序列化为 Atom 1.0。

<content type="text" customAttribute="value">Some text content</content>

注解

属性扩展是 Atom 1.0 或 RSS 2.0 规范未定义的自定义属性。 联合对象模型允许向联合内容类型(例如, TextSyndicationContent)添加自定义属性。 序列化为 Atom 1.0 时,这些属性将显示在元素中 <content> 。 序列化为 RSS 2.0 时,将忽略这些属性。

适用于