SyndicationItem.SaveAsAtom10(XmlWriter) Methode

Definition

Schreiben Sie das Syndication-Element im Atom 1.0-Format in den angegebenen XmlWriter.

public:
 void SaveAsAtom10(System::Xml::XmlWriter ^ writer);
public void SaveAsAtom10 (System.Xml.XmlWriter writer);
member this.SaveAsAtom10 : System.Xml.XmlWriter -> unit
Public Sub SaveAsAtom10 (writer As XmlWriter)

Parameter

writer
XmlWriter

Der XmlWriter, in den geschrieben werden soll.

Beispiele

Der folgende Code zeigt das Speichern eines Syndication-Elements im Atom 1.0-Format im angegebenen XML-Writer.

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();
Dim item As New SyndicationItem("Item Title", "Item Content", New Uri("http:' Item/Alternate/Link"), "itemID", DateTimeOffset.Now)
Dim writer As XmlWriter = XmlWriter.Create("outfile.xml")
item.SaveAsAtom10(writer)
writer.Close()

Gilt für: