SyndicationItem.SaveAsAtom10(XmlWriter) Method

Definition

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

C#
public void SaveAsAtom10(System.Xml.XmlWriter writer);

Parameters

writer
XmlWriter

The XmlWriter to write to.

Examples

The following code shows how to save a syndication item in Atom 1.0 format to the specified XML writer.

C#
SyndicationItem item = new SyndicationItem("Item Title", "Item Content", new Uri("http://Item/Alternate/Link"), "itemID", DateTimeOffset.Now);
XmlWriter writer = XmlWriter.Create("outfile.xml");
item.SaveAsAtom10(writer);
writer.Close();

Applies to

Proizvod Verzije
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)