ElementExtensions Property
Collapse the table of content
Expand the table of content

SyndicationCategory.ElementExtensions Property

Gets the element extensions for this category.

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel.Syndication (in System.ServiceModel.Syndication.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>
NoteNote:

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

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show:
© 2016 Microsoft