SyndicationFeed.SaveAsAtom10(XmlWriter) Yöntem

Tanım

Dağıtım akışını Atom 1.0 biçiminde belirtilen XmlWriter değerine yazın.

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)

Parametreler

writer
XmlWriter

XmlWriter Yazacak olan.

Örnekler

Aşağıdaki kodda Atom 1.0 biçiminde bir SyndicationFeed örneğin nasıl yazılır gösterilmektedir.

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);
Dim feed As New SyndicationFeed("Feed Title", "Feed Description", New Uri("http:'Feed/Alternate/Link"), "FeedID", DateTime.Now)
' ...
Dim xmlWriter As XmlWriter = xmlWriter.Create("TestAtomFile.xml")
feed.SaveAsAtom10(XmlWriter)

Şunlara uygulanır