SyndicationFeed.SaveAsAtom10(XmlWriter) メソッド

定義

配信フィードを、Atom 1.0 形式の指定した 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)

パラメーター

writer
XmlWriter

書き込み先の XmlWriter

SyndicationFeed インスタンスを書き込む方法を次のコードに示します。

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)

適用対象