Rss20FeedFormatter.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 feed 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.
Rss20FeedFormatter feedFormatter = new Rss20FeedFormatter();
XmlReader rssReader = XmlReader.Create("http://Contoso/Feeds/MyFeed");
if (feedFormatter.CanRead(rssReader))
{
feedFormatter.ReadFrom(rssReader);
rssReader.Close();
}
Dim feedFormatter As New Rss20FeedFormatter()
Dim rssReader As XmlReader = XmlReader.Create("http://Contoso/Feeds/MyFeed")
If feedFormatter.CanRead(rssReader) Then
feedFormatter.ReadFrom(rssReader)
rssReader.Close()
End If
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.