Compartir a través de


SyndicationItem Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents a feed item, for example an RSS <item> or an Atom <entry>.

Inheritance Hierarchy

System.Object
  System.ServiceModel.Syndication.SyndicationItem

Namespace:  System.ServiceModel.Syndication
Assembly:  System.ServiceModel.Syndication (in System.ServiceModel.Syndication.dll)

Syntax

'Declaration
Public Class SyndicationItem
public class SyndicationItem

The SyndicationItem type exposes the following members.

Constructors

  Name Description
Public method SyndicationItem() Initializes a new instance of the SyndicationItem class.
Protected method SyndicationItem(SyndicationItem) Initializes a new instance of the SyndicationItem class with the specified SyndicationItem instance.
Public method SyndicationItem(String, String, Uri) Initializes a new instance of the SyndicationItem class with the specified title, content, and link.
Public method SyndicationItem(String, SyndicationContent, Uri, String, DateTimeOffset) Initializes a new instance of the SyndicationItem class.
Public method SyndicationItem(String, String, Uri, String, DateTimeOffset) Initializes a new instance of the SyndicationItem class.

Top

Properties

  Name Description
Public property AttributeExtensions Gets the attribute extensions for the syndication item.
Public property Authors Gets the authors of the syndication item.
Public property BaseUri Gets and sets the base Uniform Resource Identifier (URI) for the SyndicationItem instance.
Public property Categories Gets the syndication categories for the syndication item.
Public property Content Gets and sets the content of the syndication item.
Public property Contributors Gets the contributors of the syndication item.
Public property Copyright Gets and sets the copyright information for the syndication item.
Public property ElementExtensions Gets the element extensions contained in the syndication item.
Public property Id Gets and sets the ID of the syndication item.
Public property LastUpdatedTime Gets and sets the last updated time for the syndication item.
Public property Links Gets the links contained in the syndication item.
Public property PublishDate Gets and sets the publish date for the syndication item.
Public property SourceFeed Gets and sets the source feed of the syndication item.
Public property Summary Gets and sets the summary of the syndication item.
Public property Title Gets and sets the title of the syndication item.

Top

Methods

  Name Description
Public method AddPermalink Adds a permalink to the SyndicationItem.
Public method Clone Creates a copy of the SyndicationItem instance.
Protected method CreateCategory Creates a new category.
Protected method CreateLink Creates a new SyndicationLink instance.
Protected method CreatePerson Creates a new person.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAtom10Formatter Gets an Atom10FeedFormatter instance.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetRss20Formatter() Gets an Rss20FeedFormatter instance.
Public method GetRss20Formatter(Boolean) Gets an Rss20FeedFormatter instance.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member Load(XmlReader) Loads a SyndicationItem instance from the specified XmlReader.
Public methodStatic member Load<TSyndicationItem>(XmlReader) Loads a SyndicationItem derived object from the specified XmlReader.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SaveAsAtom10 Write the syndication item to the specified XmlWriter in Atom 1.0 format.
Public method SaveAsRss20 Write the syndication item to the specified XmlWriter in RSS 2.0 format.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method TryParseAttribute Attempts to parse an attribute extension.
Protected method TryParseContent Attempts to parse content.
Protected method TryParseElement Attempts to parse an element extension.
Protected method WriteAttributeExtensions Writes the attribute extensions to the specified XmlWriter using the specified syndication version.
Protected method WriteElementExtensions Writes the element extensions to the specified XmlWriter using the specific syndication version.

Top

Remarks

When serialized to Atom 1.0, a SyndicationItem instance is written to an <entry> element. The following table shows how each property defined for SyndicationItem is serialized for Atom 1.0.

SyndicationItem property

Serialized form

AttributeExtensions

Attribute in the <entry> element.

Authors

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

Categories

A<category> element.

Content

A<content> element.

Contributors

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

Copyright

A<rights> element.

ElementExtensions

Element in the <entry> element.

Id

An <id> element.

LastUpdatedTime

An <updated> element.

Links

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

PublishDate

A <published> element.

SourceFeed

A <source> element.

Summary

A <summary> element.

Title

A <title> element.

When serialized to RSS 2.0, a SyndicationItem instance is written to an <item> element. The following table shows how each property defined for SyndicationItem is serialized for RSS 2.0.

SyndicationItem property

Serialized form

AttributeExtensions

Attribute in the <item> element.

Authors

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

Categories

A <category> element.

Content

An <a10:content> element.

Contributors

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

Copyright

A <copyright> element.

ElementExtensions

Element in the <item> element.

Id

An <a10:id> element.

LastUpdatedTime

An <a10:updated> element.

Links

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

PublishDate

A <pubDate> element.

SourceFeed

A <source> element.

Summary

A <description> element.

Title

A <title> element.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.