小编use*_*292的帖子

EWS PullSubscription用于新的或修改的日历事件

我一直在寻找一个EWS pullsubscription示例,它允许我获取自用户启动以来为用户创建或修改的日历事件列表.我有工作代码来获取收件箱的这些信息,但我还没有找到一个很好的例子来说明如何为日历做这个.

以下是收件箱的示例; 任何人都可以为我提供链接或代码示例,以使用Exchange Web服务请求订阅完成日历事件或约会相同的事情?

    ExchangeService service;
    PullSubscription subscriptionInbox;

    private void SetService() {
        service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
        service.Url = new Uri("https://mail.myserver.com/EWS/Exchange.asmx");
    }

    private void SetSubscription() {
        if(service == null) {
            SetService();
        }
        // Subscribe to pull notifications in the Inbox folder, and get notified when
        // a new mail is received, when an item or folder is created, or when an item
        // or folder is deleted. 
        subscriptionInbox = service.SubscribeToPullNotifications(
        new FolderId[] { WellKnownFolderName.Inbox },
        5 /* timeOut: the subscription …
Run Code Online (Sandbox Code Playgroud)

.net c# exchangewebservices

4
推荐指数
1
解决办法
3892
查看次数

标签 统计

.net ×1

c# ×1

exchangewebservices ×1