Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SyndicationFeed.ElementExtensions Property

Gets the element extensions for the feed.

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

public SyndicationElementExtensionCollection ElementExtensions { get; }

Property Value

Type: System.ServiceModel.Syndication.SyndicationElementExtensionCollection
A SyndicationElementExtensionCollection instance that contains the element extensions in the feed.

Element extensions are valid XML elements that are not specified in either the Atom 1.0 or RSS 2.0 specifications. You can add any valid XML element as an extension, provided its namespace is different from the enclosing namespace.

<mg:MyElement xmlns:mg="http://myserver/elements" />

For an example of adding element extensions, see the Loosely-Typed Extensions Sample sample.

The following code shows how to add element extensions to a SyndicationFeed instance.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5

Community Additions

© 2015 Microsoft