【问题标题】:RSS 2.0 feed - set update limit for Outlook 2007RSS 2.0 feed - 为 Outlook 2007 设置更新限制
【发布时间】:2009-06-05 06:18:43
【问题描述】:

我正在为 Outlook 2007 SP2 客户端使用 System.ServiceModel.Syndication.SyndicationFeed 生成 RSS 2.0 提要,我想知道是否可以在以便被 Outlook 客户端识别。

【问题讨论】:

  • 您是否介意分享更多有关此功能的信息?我很想找到更多关于通过 VBA 自动化 RSS / Outlook 的信息,你在使用 VSTO,这是我不理解的吗?
  • 不,我对设置 RSS 提要属性感兴趣,以便 Outlook 在添加 RSS 提要时使用指定的属性。在此过程中,Outlook 从未受到任何损害(使用 VSTO 或 VBA 或其他)。

标签: c# rss outlook outlook-2007


【解决方案1】:

您需要使用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);

【讨论】:

    猜你喜欢
    • 2013-02-27
    • 2017-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-22
    • 2010-10-06
    • 2011-05-15
    • 1970-01-01
    相关资源
    最近更新 更多