SyndicationCategory.ElementExtensions Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the element extensions for this category.

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

public SyndicationElementExtensionCollection ElementExtensions { get; }

Property Value

Type: System.ServiceModel.Syndication.SyndicationElementExtensionCollection

A collection of element extensions.

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.

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 xmlns="">Some text</customCategoryElement>
</category>
System_CAPS_noteNote

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

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