Export (0) Print
Expand All

SyndicationContent.AttributeExtensions Property

Gets the attribute extensions for this content.

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public Dictionary<XmlQualifiedName, string> AttributeExtensions { get; }

Property Value

Type: System.Collections.Generic.Dictionary<XmlQualifiedName, String>
A dictionary that contains the attribute extensions for this object.

Attribute extensions are custom attributes that are not defined by the Atom 1.0 or RSS 2.0 specifications. The syndication object model allows you to add custom attributes to a syndication content type (for example, TextSyndicationContent). When serialized to Atom 1.0, these attributes appear within the <content> element. When serialized to RSS 2.0, these attribute are ignored.

The following XML shows how a custom attribute added to a TextSyndicationContent instance is serialized to Atom 1.0.

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

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft