SyndicationFeed.SaveAsAtom10 Method (XmlWriter)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Write the syndication feed to the specified XmlWriter in Atom 1.0 format.

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

public void SaveAsAtom10(
	XmlWriter writer
)

Parameters

writer
Type: System.Xml.XmlWriter

The XmlWriter to write to.

The following code shows how to write out a SyndicationFeed instance in the Atom 1.0 format.

SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
// ...
XmlWriter xmlWriter = XmlWriter.Create("TestAtomFile.xml");
feed.SaveAsAtom10(xmlWriter);

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