SyndicationItem::SourceFeed Property

 

Gets and sets the source feed of the syndication item.

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

public:
property SyndicationFeed^ SourceFeed {
	SyndicationFeed^ get();
	void set(SyndicationFeed^ value);
}

Property Value

Type: System.ServiceModel.Syndication::SyndicationFeed^

A SyndicationFeed instance where the syndication item is located.

This property is not automatically set when you add a SyndicationItem to a SyndicationFeed—you must explicitly set it. When serialized to Atom 1.0 or RSS 2.0, this property is written to a <source> element. The contents of that element vary depending on the format you serialize to.

The following XML shows how the SourceFeed property is serialized to Atom 1.0.

<source>
  <title type="text">MyFeed</title>
  <subtitle type="text">This is my feed</subtitle>
  <link rel="alternate" href="http://myfeed/" />
</source>

The following XML shows how the SourceFeed property is serialized to RSS 2.0.

<source>MyFeed</source>

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: