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
Beispiel #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);
        }