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 ref class SyndicationFeed sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Syndication.ISyndicationFeedFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SyndicationFeed final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Syndication.ISyndicationFeedFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class SyndicationFeed final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Syndication.ISyndicationFeedFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SyndicationFeed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Syndication.ISyndicationFeedFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SyndicationFeed
function SyndicationFeed(title, subtitle, uri)
Public NotInheritable Class SyndicationFeed
Inheritance
Object Platform::Object IInspectable SyndicationFeed
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

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

SyndicationFeed RSS Channel Atom Feed
Authors managingEditor author
Categories category category
Contributors contributor
Generator generator generator
IconUri icon
Id id
LastUpdatedTime lastBuildDate updated
Rights copyright rights
Subtitle description subtitle
Title title title
Items item entry
Links link link
ImageUri image logo
FirstUri link with rel="first"
LastUri link with rel="last"
NextUri link with rel="next"
PreviousUri link with rel="previous"
SourceFormat

Constructors

SyndicationFeed()

Creates a new SyndicationFeed object.

SyndicationFeed(String, String, Uri)

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

Properties

AttributeExtensions

Gets the list of custom attributes of the element.

Authors

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

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

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

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

Gets the list of child elements within the element.

FirstUri

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

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

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

Id

Gets or sets the identifier for the syndication feed.

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

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

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

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

LastUri

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

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

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

NodeName

Gets or sets the local name of the element.

NodeNamespace

Gets or sets the namespace of the element.

NodeValue

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

PreviousUri

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

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

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

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

Gets or sets the title of the syndication feed.

Methods

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)

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

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.

Applies to

See also