SyndicationFeed.SaveAsRss20(XmlWriter) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Escreva o feed de sindicância no formato especificado XmlWriter em 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)
Parâmetros
Exemplos
O código seguinte mostra como escrever uma SyndicationFeed instância no formato RSS 2.0.
SyndicationFeed feed = new SyndicationFeed("Feed Title", "Feed Description", new Uri("http://Feed/Alternate/Link"), "FeedID", DateTime.Now);
// ...
XmlWriter xmlWriter = XmlWriter.Create("TestRSSFile.xml");
feed.SaveAsRss20(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("TestRSSFile.xml")
feed.SaveAsRss20(XmlWriter)