SyndicationItem.GetAtom10Formatter 메서드

정의

Atom10FeedFormatter 인스턴스를 가져옵니다.

public:
 System::ServiceModel::Syndication::Atom10ItemFormatter ^ GetAtom10Formatter();
public System.ServiceModel.Syndication.Atom10ItemFormatter GetAtom10Formatter ();
member this.GetAtom10Formatter : unit -> System.ServiceModel.Syndication.Atom10ItemFormatter
Public Function GetAtom10Formatter () As Atom10ItemFormatter

반환

Atom10ItemFormatter

Atom10FeedFormatter 인스턴스입니다.

예제

다음 코드에서는 Atom 1.0 형식의 배포 항목을 XML 파일에 쓰는 방법을 보여 있습니다.

SyndicationItem item = new SyndicationItem("Item Title", "Item Content", new Uri("http://Item/Alternate/Link"), "itemID", DateTimeOffset.Now);
Atom10ItemFormatter atomFormatter = item.GetAtom10Formatter();
XmlWriter writer = XmlWriter.Create("output.xml");
atomFormatter.WriteTo(writer);
writer.Close();
Dim item As New SyndicationItem("Item Title", "Item Content", New Uri("http:' Item/Alternate/Link"), "itemID", DateTimeOffset.Now)
Dim atomFormatter As Atom10ItemFormatter = item.GetAtom10Formatter()
Dim writer As XmlWriter = XmlWriter.Create("output.xml")
atomFormatter.WriteTo(writer)
writer.Close()

적용 대상