0 out of 1 rated this helpful - Rate this topic

SyndicationItem.ElementExtensions Property

Gets the element extensions contained in the syndication item.

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)
public SyndicationElementExtensionCollection ElementExtensions { get; }

Element extensions are valid XML elements that are not specified in either the Atom 1.0 or RSS 2.0 specifications. Any valid XML element can be added as an extension provided its namespace is different from the enclosing namespace. When serialized, extensions are written like any other XML element.

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

For a complete example that shows how to add element extensions, see the Loosely-Typed Extensions Sample sample.

The following code shows how to add element extensions to a SyndicationItem 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
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.