Skip to main content
SyndicationFeed class

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.

Syntax


var syndicationFeed = new Windows.Web.Syndication.SyndicationFeed(string, string, uri);
var syndicationFeed = new Windows.Web.Syndication.SyndicationFeed();

public sealed class SyndicationFeed : ISyndicationNode

Public NotInheritable Class SyndicationFeed
    Implements ISyndicationNode

public ref class SyndicationFeed sealed : ISyndicationNode

Members

The SyndicationFeed class has these types of members:

Constructors

The SyndicationFeed class has these constructors.

ConstructorDescription
SyndicationFeed() Creates a new SyndicationFeed object.
SyndicationFeed(String, String, Uri) Creates a new SyndicationFeed object with a Title, Subtitle, and Uri.

 

Methods

The SyndicationFeed class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetXmlDocument 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 Initializes the object from the given feed string, which can be in either RSS 2.0 or Atom 1.0 format.
LoadFromXml Initializes the SyndicationFeed object from the given DOM object, which can contain XML content in either RSS 2.0 or Atom 1.0 format.

 

Properties

The SyndicationFeed class has these properties.

PropertyAccess typeDescription

AttributeExtensions

Read-only

Gets the list of custom attributes of the element.

Authors

Read-only

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

BaseUri

Read/write

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

Read-only

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

Contributors

Read-only

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

ElementExtensions

Read-only

Gets the list of child elements within the element.

FirstUri

Read-only

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

Generator

Read/write

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

IconUri

Read/write

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

Id

Read/write

Gets or sets the identifier for the syndication feed.

ImageUri

Read/write

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

Read-only

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

Read/write

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

Read/write

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

LastUri

Read-only

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

Links

Read-only

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

Read-only

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

NodeName

Read/write

Gets or sets the local name of the element.

NodeNamespace

Read/write

Gets or sets the namespace of the element.

NodeValue

Read/write

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

PreviousUri

Read-only

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

Rights

Read/write

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

Read-only

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

Subtitle

Read/write

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

Title

Read/write

Gets or sets the title of the syndication feed.

 

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

 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Web.Syndication
Windows::Web::Syndication [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Syndication
Windows::Web::Syndication [C++]

Metadata

Windows.winmd

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Threading(Both)]
[ Version(0x06020000)]

See also

Object
ISyndicationNode
Quickstart: Accessing a web feed
Syndication sample
AtomPub sample