Rss20FeedFormatter Constructor ()

 

Creates a new instance of the Rss20FeedFormatter class.

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

public Rss20FeedFormatter()

The following code shows how to create an Rss20FeedFormatter instance and read in an RSS syndication feed.

XmlReader rssReader = XmlReader.Create("http://contoso/Feeds/RSS/MyFeed");
Rss20FeedFormatter rssFormatter = new Rss20FeedFormatter();
rssFormatter.ReadFrom(rssReader);
rssReader.Close();

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