views:

291

answers:

1

I am generating an RSS 2.0 feed using System.ServiceModel.Syndication.SyndicationFeed for Outlook 2007 SP2 clients, and I would like to know if it is possible to set the update limit for the feed in order to be recognized by Outlook client.

+3  A: 

You need to use the syndication extension module:

feed.AttributeExtensions.Add(new XmlQualifiedName("sy", "http://www.w3.org/2000/xmlns/"), "http://purl.org/rss/1.0/modules/syndication/");
feed.ElementExtensions.Add("updatePeriod", "http://purl.org/rss/1.0/modules/syndication/", "daily");
feed.ElementExtensions.Add("updateFrequency", "http://purl.org/rss/1.0/modules/syndication/", 6);
feed.ElementExtensions.Add("updateBase", "http://purl.org/rss/1.0/modules/syndication/", DateTime.UtcNow);
Richard