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 | |
---|---|---|
SyndicationItem() | Initializes a new instance of the SyndicationItem class. | |
SyndicationItem(SyndicationItem) | Initializes a new instance of the SyndicationItem class with the specified SyndicationItem instance. | |
SyndicationItem(String, String, Uri) | Initializes a new instance of the SyndicationItem class with the specified title, content, and link. | |
SyndicationItem(String, SyndicationContent, Uri, String, DateTimeOffset) | Initializes a new instance of the SyndicationItem class. | |
SyndicationItem(String, String, Uri, String, DateTimeOffset) | Initializes a new instance of the SyndicationItem class. |
Top
Properties
Name | Description | |
---|---|---|
AttributeExtensions | Gets the attribute extensions for the syndication item. | |
Authors | Gets the authors of the syndication item. | |
BaseUri | Gets and sets the base Uniform Resource Identifier (URI) for the SyndicationItem instance. | |
Categories | Gets the syndication categories for the syndication item. | |
Content | Gets and sets the content of the syndication item. | |
Contributors | Gets the contributors of the syndication item. | |
Copyright | Gets and sets the copyright information for the syndication item. | |
ElementExtensions | Gets the element extensions contained in the syndication item. | |
Id | Gets and sets the ID of the syndication item. | |
LastUpdatedTime | Gets and sets the last updated time for the syndication item. | |
Links | Gets the links contained in the syndication item. | |
PublishDate | Gets and sets the publish date for the syndication item. | |
SourceFeed | Gets and sets the source feed of the syndication item. | |
Summary | Gets and sets the summary of the syndication item. | |
Title | Gets and sets the title of the syndication item. |
Top
Methods
Name | Description | |
---|---|---|
AddPermalink | Adds a permalink to the SyndicationItem. | |
Clone | Creates a copy of the SyndicationItem instance. | |
CreateCategory | Creates a new category. | |
CreateLink | Creates a new SyndicationLink instance. | |
CreatePerson | Creates a new person. | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
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.) | |
GetAtom10Formatter | Gets an Atom10FeedFormatter instance. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetRss20Formatter() | Gets an Rss20FeedFormatter instance. | |
GetRss20Formatter(Boolean) | Gets an Rss20FeedFormatter instance. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Load(XmlReader) | Loads a SyndicationItem instance from the specified XmlReader. | |
Load<TSyndicationItem>(XmlReader) | Loads a SyndicationItem derived object from the specified XmlReader. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SaveAsAtom10 | Write the syndication item to the specified XmlWriter in Atom 1.0 format. | |
SaveAsRss20 | Write the syndication item to the specified XmlWriter in RSS 2.0 format. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryParseAttribute | Attempts to parse an attribute extension. | |
TryParseContent | Attempts to parse content. | |
TryParseElement | Attempts to parse an element extension. | |
WriteAttributeExtensions | Writes the attribute extensions to the specified XmlWriter using the specified syndication version. | |
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 |
---|---|
Attribute in the <entry> element. |
|
An <author> element for each author in the collection. |
|
A<category> element. |
|
A<content> element. |
|
A<contributor> element for each contributor in the collection. |
|
A<rights> element. |
|
Element in the <entry> element. |
|
An <id> element. |
|
An <updated> element. |
|
A <link> element for each link in the collection. |
|
A <published> element. |
|
A <source> element. |
|
A <summary> element. |
|
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 |
---|---|
Attribute in the <item> element. |
|
A <managingEditor> if only one SyndicationPerson is in the Authors collection; otherwise, the <a10:author> element for each author in the collection. |
|
A <category> element. |
|
An <a10:content> element. |
|
An <a10:contributor> element for each SyndicationPerson in the Contributors collection. |
|
A <copyright> element. |
|
Element in the <item> element. |
|
An <a10:id> element. |
|
An <a10:updated> element. |
|
A <link> element for each SyndicationLink in the Links collection. |
|
A <pubDate> element. |
|
A <source> element. |
|
A <description> element. |
|
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.