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
public sealed class SyndicationFeed : Object, ISyndicationNode
Attributes
- ActivatableAttribute(NTDDI_WIN8)
- ActivatableAttribute(Windows.Web.Syndication.ISyndicationFeedFactory, NTDDI_WIN8)
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
Members
The SyndicationFeed class has these types of members:
Constructors
The SyndicationFeed class has these constructors.
| Constructor | Description |
|---|---|
| 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.
| Method | Description |
|---|---|
| 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.
| Property | Access type | Description |
|---|---|---|
| Read-only | Gets the list of custom attributes of the element. | |
| Read-only | Gets the authors of an item. This property represents the collection of all the atom:author elements under atom:entry. | |
| 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. | |
| Read-only | Gets a collection of categories of the feed. This property represents the collection of all the atom:category elements under atom:feed. | |
| 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. | |
| Read-only | Gets the list of child elements within the element. | |
| Read-only | Gets the first Uniform Resource Identifier (URI) in a sequence. This property represents the atom:link element with attribute rel=”first”. | |
| 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. | |
| Read/write | Gets or sets the Uniform Resource Identifier (URI) for the image for the feed. This property represents the atom:icon element. | |
| Read/write | Gets or sets the identifier for the syndication feed. | |
| 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. | |
| 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. | |
| 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. | |
| Read/write | Gets or sets the time the feed was last modified. This property represents the /rss/channel/lastBuildDate or atom:updated element. | |
| Read-only | Gets the last Uniform Resource Identifier (URI) in the sequence. This property represents the atom:link element with attribute rel=”last”. | |
| 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. | |
| Read-only | Gets the next Uniform Resource Identifier (URI) in the sequence. This property represents the atom:link element with attribute rel="next". | |
| Read/write | Gets or sets the local name of the element. | |
| Read/write | Gets or sets the namespace of the element. | |
| Read/write | Gets or sets the text content of the element. If the element contains only child elements, this property is NULL. | |
| Read-only | Gets the previous Uniform Resource Identifier (URI) in the sequence. This property represents the atom:link element with attribute rel="previous". | |
| 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. | |
| Read-only | Gets the format of the source document. If the object is not loaded from a document, this property will return SyndicationFormat_Atom10. | |
| 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. | |
| Read/write | Gets or sets the title of the syndication feed. |
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 |
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps, desktop apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps, desktop apps] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012