次の方法で共有


SyndicationItem.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

次のコードは、Atom 1.0 形式の配信項目を指定された XML ライターに保存する方法を示しています。

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

適用対象