public static GetLastPageLink ( this feed, bool throwIfNotPresent ) : System.ServiceModel.Syndication.SyndicationLink | ||
feed | this | |
throwIfNotPresent | bool | |
Résultat | System.ServiceModel.Syndication.SyndicationLink |
public static SyndicationLink GetLastPageLink(this SyndicationFeed feed, bool throwIfNotPresent)
{
if (feed == null)
{
throw new ArgumentNullException("feed");
}
SyndicationLink lastPageLink = feed.Links.Where((link) =>(link.RelationshipType == "last")).SingleOrDefault();
return lastPageLink;
}