ZForge.Controls.RSS.RSSReader.GetFeed C# (CSharp) Method

GetFeed() public static method

Retrieves a RssFeed object using the url provided as the source of the Feed.
public static GetFeed ( string Url ) : RSSFeed
Url string The url to retrieve the RSS feed from, this can /// be in the format of http:// and also file://.. (ftp?)
return RSSFeed
        public static RSSFeed GetFeed(string Url)
        {
            RSSReader rssReader = new RSSReader();
            return rssReader.Retrieve(Url);
        }

Same methods

RSSReader::GetFeed ( string Url, bool RdfFormat ) : RSSFeed

Usage Example

Esempio n. 1
0
        private bool UpdateItemCollection()
        {
            bool ret = false;

            foreach (string u in mUrlList)
            {
                RSSFeed f = RSSReader.GetFeed(u);
                if (string.IsNullOrEmpty(f.ErrorMessage))
                {
                    mItemCollection.RemoveAll(delegate(RSSItem o) { return(o.Feed.URL == u); });
                    foreach (RSSItem i in f.Items)
                    {
                        mItemCollection.Add(i);
                        ret = true;
                    }
                }
            }
            return(ret);
        }