Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SyndicationFeed Class

Represents a top-level feed object, <feed> in Atom 1.0 and <rss> in RSS 2.0.

System.Object
  System.ServiceModel.Syndication.SyndicationFeed

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)
public class SyndicationFeed

The SyndicationFeed type exposes the following members.

  NameDescription
Public methodSyndicationFeed()Initializes a new instance of the SyndicationFeed class.
Public methodSyndicationFeed(IEnumerable<SyndicationItem>)Initializes a new instance of the SyndicationFeed class with the specified collection of SyndicationItem objects.
Protected methodSyndicationFeed(SyndicationFeed, Boolean)Creates a new instance of the SyndicationFeed class with the specified feed.
Public methodSyndicationFeed(String, String, Uri)Initializes a new instance of the SyndicationFeed class with the specified title, description, and Uniform Resource Identifier (URI).
Public methodSyndicationFeed(String, String, Uri, IEnumerable<SyndicationItem>)Initializes a new instance of the SyndicationFeed class with the specified title, description, URI, and collection of SyndicationItem objects.
Public methodSyndicationFeed(String, String, Uri, String, DateTimeOffset)Creates a new instance of the SyndicationFeed class.
Public methodSyndicationFeed(String, String, Uri, String, DateTimeOffset, IEnumerable<SyndicationItem>)Creates a new instance of the SyndicationFeed class.
Top
  NameDescription
Public propertyAttributeExtensionsGets a collection of attribute extensions.
Public propertyAuthorsGets a collection of authors of the feed.
Public propertyBaseUriGets or sets the base URI for the SyndicationFeed instance.
Public propertyCategoriesGets a collection of categories for the feed.
Public propertyContributorsGets a collection of the contributors to the feed.
Public propertyCopyrightGets or sets copyright information for the feed.
Public propertyDescriptionGets or sets a description of the feed.
Public propertyElementExtensionsGets the element extensions for the feed.
Public propertyGeneratorGets or sets the generator of the feed.
Public propertyIdGets or sets the ID of the feed.
Public propertyImageUrlGets or sets the image URL for the feed.
Public propertyItemsGets a collection of the feed items contained in the feed.
Public propertyLanguageGets or sets the language of the feed.
Public propertyLastUpdatedTimeGets or sets the time the feed was last updated.
Public propertyLinksGets the links associated with the feed.
Public propertyTitleGets or sets the title of the feed.
Top
  NameDescription
Public methodCloneCreates a copy of the SyndicationFeed instance.
Protected methodCreateCategoryCreates a new SyndicationCategory instance.
Protected methodCreateItemCreates a new SyndicationItem instance.
Protected methodCreateLinkCreates a new SyndicationLink instance.
Protected methodCreatePersonCreates a new SyndicationPerson instance.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAtom10FormatterGets an Atom10FeedFormatter instance.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetRss20Formatter()Gets an Rss20FeedFormatter instance.
Public methodGetRss20Formatter(Boolean)Gets a new Rss20FeedFormatter instance.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberLoad(XmlReader)Loads a syndication feed from the specified XML reader.
Public methodStatic memberLoad<TSyndicationFeed>(XmlReader)Loads a SyndicationFeed-derived instance from the specified XmlReader.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSaveAsAtom10Write the syndication feed to the specified XmlWriter in Atom 1.0 format.
Public methodSaveAsRss20Write the syndication feed to the specified XmlWriter in RSS 2.0 format.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodTryParseAttributeAttempts to parse an attribute extension.
Protected methodTryParseElementAttempts to parse an element extension.
Protected methodWriteAttributeExtensionsWrites the attribute extensions to the specified XmlWriter using the specified syndication version.
Protected methodWriteElementExtensionsWrites the element extensions to the specified XmlWriter using the specified syndication version.
Top

When serialized to Atom 1.0, a SyndicationFeed instance is written to a <feed> element. The following table shows how each property defined in the SyndicationFeed class is serialized to Atom 1.0.

SyndicationFeed property

Serialized form

AttributeExtensions

An attribute in the <feed> element for each attribute in the collection.

Authors

An <author> element for each SyndicationPerson in the collection.

Categories

A <category> element for each SyndicationCategory in the collection.

Contributors

A <contributor> element for each SyndicationPerson in the collection.

Copyright

A <rights> element.

Description

A <subtitle> element.

ElementExtensions

Each element in the collection is written within the <feed> element.

Generator

A <generator> element.

Id

An <id>element.

ImageUri

A <logo> element.

Items

An <entry> element for each SyndicationItem in the collection.

Language

Not serialized.

LastUpdatedTime

An <updated> element.

Links

A <link> element for each SyndicationLink in the collection.

Title

A <title> element.

When serialized to RSS 2.0, a SyndicationFeed instance is written to an <rss> element. The following table shows how each property defined in the SyndicationFeed class is serialized to RSS 2.0.

SyndicationFeed property

Serialized form

AttributeExtensions

An attribute in the <channel> element for each attribute in the collection.

Authors

A <managingEditor> element if only one SyndicationPerson is in the collection; otherwise, an <a10:author> element for each SyndicationPerson in the collection.

Categories

A <category> element for each SyndicationCategory in the collection.

Contributors

An <a10:contributor> element for each SyndicationPerson in the collection.

Copyright

A <copyright> element.

Description

A <description> element.

ElementExtensions

Each element in the collection is written within the <channel> element.

Generator

A <generator> element.

Id

An <a10:id> element.

ImageUri

An <image> element.

Items

An <item> element for each SyndicationItem in the collection.

Language

A <language> element.

LastUpdatedTime

A <lastBuildDate> element.

Links

An <a10:link> element for each SyndicationLink in the collection.

Title

A <title> element.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.