Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SyndicationFeed class

Applies to Windows and Windows Phone

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();

Attributes

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

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-onlyGets the list of custom attributes of the element.

Authors

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

BaseUri

Read/writeGets 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-onlyGets a collection of categories of the feed. This property represents the collection of all the atom:category elements under atom:feed.

Contributors

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

ElementExtensions

Read-onlyGets the list of child elements within the element.

FirstUri

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

Generator

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

IconUri

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

Id

Read/writeGets or sets the identifier for the syndication feed.

ImageUri

Read/writeGets 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-onlyGets 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/writeGets 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/writeGets or sets the time the feed was last modified. This property represents the /rss/channel/lastBuildDate or atom:updated element.

LastUri

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

Links

Read-onlyGets 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-onlyGets the next Uniform Resource Identifier (URI) in the sequence. This property represents the atom:link element with attribute rel="next".

NodeName

Read/writeGets or sets the local name of the element.

NodeNamespace

Read/writeGets or sets the namespace of the element.

NodeValue

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

PreviousUri

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

Rights

Read/writeGets 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-onlyGets the format of the source document. If the object is not loaded from a document, this property will return SyndicationFormat_Atom10.

Subtitle

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

Title

Read/writeGets 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

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

See also

Quickstart: Accessing a web feed
Syndication sample
AtomPub sample

 

 

Show:
© 2014 Microsoft