System.ServiceModel.Syndication.SyndicationFeedExtensions.GetFirstPageLink C# (CSharp) Method

GetFirstPageLink() public static method

public static GetFirstPageLink ( this feed, bool throwIfNotPresent ) : System.ServiceModel.Syndication.SyndicationLink
feed this
throwIfNotPresent bool
return System.ServiceModel.Syndication.SyndicationLink
        public static SyndicationLink GetFirstPageLink(this SyndicationFeed feed, bool throwIfNotPresent)
        {
            if (feed == null)
            {
                throw new ArgumentNullException("feed");
            }
            SyndicationLink firstPageLink = feed.Links.Where((link) =>(link.RelationshipType == "first")).SingleOrDefault();
            return firstPageLink;
        }