SyndicationCategory.ElementExtensions Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the element extensions for this category.

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

Syntax

'Declaration
Public ReadOnly Property ElementExtensions As SyndicationElementExtensionCollection
public SyndicationElementExtensionCollection ElementExtensions { get; }

Property Value

Type: System.ServiceModel.Syndication.SyndicationElementExtensionCollection
A collection of element extensions.

Remarks

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

Examples

The following XML shows how a SyndicationCategory with a custom element is serialized to Atom 1.0.

<category customAttribute="value" term="FeedCategory" label="CategoryLabel" scheme="CategoryScheme">
    <customCategoryElement >Some text</customCategoryElement>
</category>
NoteNote:

Custom elements within SyndicationCategory instances are not serialized to RSS 2.0.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.