SyndicationItem::ElementExtensions Property

 

Gets the element extensions contained in the syndication item.

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

public:
property SyndicationElementExtensionCollection^ ElementExtensions {
	virtual SyndicationElementExtensionCollection^ get() sealed;
}

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: