SyndicationItem::ElementExtensions Property
.NET Framework (current version)
Gets the element extensions contained in the syndication item.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: property SyndicationElementExtensionCollection^ ElementExtensions { virtual SyndicationElementExtensionCollection^ get() sealed; }
Property Value
Type: System.ServiceModel.Syndication::SyndicationElementExtensionCollection^A SyndicationElementExtensionCollection that contains the element extensions.
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.
.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Available since 3.5
Silverlight
Available since 2.0
Show: