Feed. Save AsRss20(XmlWriter) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Write the syndication feed to the specified XmlWriter in RSS 2.0 format.
public: void SaveAsRss20(System::Xml::XmlWriter ^ writer);
public void SaveAsRss20 (System.Xml.XmlWriter writer);
member this.SaveAsRss20 : System.Xml.XmlWriter -> unit
Public Sub SaveAsRss20 (writer As XmlWriter)
The following code shows how to write out a SyndicationFeed instance in the RSS 2.0 format.
SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now); // ... XmlWriter xmlWriter = XmlWriter.Create("TestRSSFile.xml"); feed.SaveAsRss20(xmlWriter);
Dim feed As New SyndicationFeed("Feed Title", "Feed Description", New Uri("http:'Feed/Alternate/Link"), "FeedID", DateTime.Now) ' ... Dim xmlWriter As XmlWriter = xmlWriter.Create("TestRSSFile.xml") feed.SaveAsRss20(XmlWriter)