SyndicationItem.SaveAsAtom10(XmlWriter) Método

Definição

Grave o item de sindicalização no XmlWriter especificado no formato Atom 1.0.

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)

Parâmetros

writer
XmlWriter

O XmlWriter no qual ocorrerá a gravação.

Exemplos

O código a seguir mostra como salvar um item de sindicalização no formato Atom 1.0 no gravador XML especificado.

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()

Aplica-se a