다음을 통해 공유


SyndicationItem.SaveAsRss20(XmlWriter) 메서드

정의

배포 항목을 지정된 XmlWriter 에 RSS 2.0 형식으로 씁니다.

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

매개 변수

writer
XmlWriter

XmlWriter입니다.

예제

다음 코드에서는 RSS 2.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.SaveAsRss20(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.SaveAsRss20(writer)
writer.Close()

적용 대상