Rss20ItemFormatter.ReadFrom(XmlReader) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads an RSS 2.0 syndication item from the specified XmlReader instance.
public:
override void ReadFrom(System::Xml::XmlReader ^ reader);
public override void ReadFrom (System.Xml.XmlReader reader);
override this.ReadFrom : System.Xml.XmlReader -> unit
Public Overrides Sub ReadFrom (reader As XmlReader)
Parameters
Examples
The following code shows how to use the ReadFrom(XmlReader) method.
Rss20ItemFormatter feedFormatter = new Rss20ItemFormatter();
XmlReader rssReader = XmlReader.Create("http://Contoso/Feeds/MyFeed");
if (feedFormatter.CanRead(rssReader))
{
feedFormatter.ReadFrom(rssReader);
rssReader.Close();
}
Applies to
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.