代码之家  ›  专栏  ›  技术社区  ›  alexandrul

RSS 2.0源-设置Outlook 2007的更新限制

  •  1
  • alexandrul  · 技术社区  · 16 年前

    System.ServiceModel.Syndication.SyndicationFeed 对于Outlook 2007 SP2客户端,我想知道是否可以设置提要的更新限制,以便Outlook客户端能够识别。

    1 回复  |  直到 16 年前
        1
  •  3
  •   Richard Deeming    16 年前

    你需要使用 syndication extension 模块:

    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);
    
    推荐文章