SyndicationFeed SyndicationFeed SyndicationFeed SyndicationFeed SyndicationFeed Class

Definition

Contains information about a feed. This class encapsulates the information in the /rss/channel element in RSS 2.0 or the atom:feed element in Atom 1.0.

public : sealed class SyndicationFeed : ISyndicationFeed, ISyndicationNode
struct winrt::Windows::Web::Syndication::SyndicationFeed : ISyndicationFeed, ISyndicationNode
public sealed class SyndicationFeed : ISyndicationFeed, ISyndicationNode
Public NotInheritable Class SyndicationFeed Implements ISyndicationFeed, ISyndicationNode
var syndicationFeed = new syndicationFeed();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The following table maps SyndicationFeed properties to RSS and Atom feed elements.

SyndicationFeedRSS ChannelAtom Feed
Authors managingEditorauthor
Categories categorycategory
Contributors contributor
Generator generatorgenerator
IconUri icon
Id id
LastUpdatedTime lastBuildDateupdated
Rights copyrightrights
Subtitle descriptionsubtitle
Title titletitle
Items itementry
Links linklink
ImageUri imagelogo
FirstUri link with rel="first"
LastUri link with rel="last"
NextUri link with rel="next"
PreviousUri link with rel="previous"
SourceFormat

Constructors

SyndicationFeed() SyndicationFeed() SyndicationFeed() SyndicationFeed() SyndicationFeed()

Creates a new SyndicationFeed object.

SyndicationFeed(String, String, Uri) SyndicationFeed(String, String, Uri) SyndicationFeed(String, String, Uri) SyndicationFeed(String, String, Uri) SyndicationFeed(String, String, Uri)

Creates a new SyndicationFeed object with a Title, Subtitle, and Uri.

Properties

AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions AttributeExtensions

Gets the list of custom attributes of the element.

Authors Authors Authors Authors Authors

Gets the authors of an item. This property represents the collection of all the atom:author elements under atom:entry.

BaseUri BaseUri BaseUri BaseUri BaseUri

Gets or sets the base URI for the element. This property represents the xml:base attribute on the element. It may be inherited from an ancestor element.

Categories Categories Categories Categories Categories

Gets a collection of categories of the feed. This property represents the collection of all the atom:category elements under atom:feed.

Contributors Contributors Contributors Contributors Contributors

Gets a collection of the contributors of the feed. This property represents the collection of all the atom:contributor elements under atom:feed.

ElementExtensions ElementExtensions ElementExtensions ElementExtensions ElementExtensions

Gets the list of child elements within the element.

FirstUri FirstUri FirstUri FirstUri FirstUri

Gets the first Uniform Resource Identifier (URI) in a sequence. This property represents the atom:link element with attribute rel=”first”.

Generator Generator Generator Generator Generator

Gets or sets the generator of the feed. This property represents the atom:generator element or the generator element in RSS 2.0.

IconUri IconUri IconUri IconUri IconUri

Gets or sets the Uniform Resource Identifier (URI) for the image for the feed. This property represents the atom:icon element.

Id Id Id Id Id

Gets or sets the identifier for the syndication feed.

ImageUri ImageUri ImageUri ImageUri ImageUri

Gets or sets the Uniform Resource Identifier (URI) of the logo for the feed. This property represents the atom:logo element or image/uri element in RSS 2.0.

Items Items Items Items Items

Gets the collection of items in the feed. This property represents the collection of atom:entry elements or a collection of item elements in RSS 2.0.

Language Language Language Language Language

Gets or sets the language of the element. This property represents the xml:lang attribute on the element. It may be inherited from an ancestor element. It must be valid according to XML 1.0.

LastUpdatedTime LastUpdatedTime LastUpdatedTime LastUpdatedTime LastUpdatedTime

Gets or sets the time the feed was last modified. This property represents the /rss/channel/lastBuildDate or atom:updated element.

LastUri LastUri LastUri LastUri LastUri

Gets the last Uniform Resource Identifier (URI) in the sequence. This property represents the atom:link element with attribute rel=”last”.

Links Links Links Links Links

Gets the links associated with the feed. This property represents a collection of the atom:link elements under atom:feed. In RSS 2.0, this maps to the link element.

NextUri NextUri NextUri NextUri NextUri

Gets the next Uniform Resource Identifier (URI) in the sequence. This property represents the atom:link element with attribute rel="next".

NodeName NodeName NodeName NodeName NodeName

Gets or sets the local name of the element.

NodeNamespace NodeNamespace NodeNamespace NodeNamespace NodeNamespace

Gets or sets the namespace of the element.

NodeValue NodeValue NodeValue NodeValue NodeValue

Gets or sets the text content of the element. If the element contains only child elements, this property is NULL.

PreviousUri PreviousUri PreviousUri PreviousUri PreviousUri

Gets the previous Uniform Resource Identifier (URI) in the sequence. This property represents the atom:link element with attribute rel="previous".

Rights Rights Rights Rights Rights

Gets or sets information about the rights for the feed. This property represents the atom:rights element or the copyright element in RSS 2.0.

SourceFormat SourceFormat SourceFormat SourceFormat SourceFormat

Gets the format of the source document. If the object is not loaded from a document, this property will return SyndicationFormat_Atom10.

Subtitle Subtitle Subtitle Subtitle Subtitle

Gets or sets the subtitle of the feed. This property represents the atom:subtitle element or the description element in RSS 2.0.

Title Title Title Title Title

Gets or sets the title of the syndication feed.

Methods

GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat) GetXmlDocument(SyndicationFormat)

Generates the DOM object that represents this element, all the attributes and child elements including foreign markups. The only formats accepted by this method are Atom 1.0 and RSS 2.0.

Load(String) Load(String) Load(String) Load(String) Load(String)

Initializes the object from the given feed string, which can be in either RSS 2.0 or Atom 1.0 format.

LoadFromXml(XmlDocument) LoadFromXml(XmlDocument) LoadFromXml(XmlDocument) LoadFromXml(XmlDocument) LoadFromXml(XmlDocument)

Initializes the SyndicationFeed object from the given DOM object, which can contain XML content in either RSS 2.0 * or *Atom 1.0 format.

See Also