Exchange Web服务托管API - 访问委派用户的收件箱 [英] Exchange Web Services Managed API - Accessing Delegated User's Inbox

查看:54
本文介绍了Exchange Web服务托管API - 访问委派用户的收件箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我上下搜索了EWS Mnaaged API文档,但我可以确定如何访问登录帐户具有委托访问权限的用户邮箱的收件箱或搜索文件夹。理想情况下,我想通过Inbox中的所有邮件来查找关键字的
,我可以对serivce.Credentials()调用中使用的帐户做得很好,但似乎无法想象如何做一个service.FindFolders()并得到一个根的 不同的用户根文件夹(谁已授予代理
访问Credentialed帐户。

I've searched the EWS Mnaaged API documentation up and down, but I can determine how to access the Inbox or Search Folders for a user's mailbox which the login account has delegate access to. Ideally, I'd like to enuerate through all Mails in teh Inbox looking for keywords, which I can do just fine for the account that was used in the serivce.Credentials() call, but can't seem to figure out how to do a service.FindFolders() and get ahold of the root of  different users root folder (who has granted delegate access to the Credentialed account.

我正在寻找任何等同于API中的DistinguishedFolder但却什么都没找到的。

I'm looking for anythign that would equate to a DistinguishedFolder in the API, but finding nothing.

任何帮助都将不胜感激...

Any help would be appreciated...

推荐答案

您好,试试这个:ExchangeService service = new ExchangeService (ExchangeVersion.Exchange2007_SP1); service.Credentials = new WebCredentials(@"yourraccount @ yourdomain",@"password"); try {service.AutodiscoverUrl(" delegatedMailbox @ yourdomain",ValidateRedirectionUrlCallback);
} catch (Exception exp){Console.Writeline(exp.message)}这将使用youraccount连接到delgatedMailbox。比尔
Hello, Try this: ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); service.Credentials = new WebCredentials(@"youraccount@yourdomain", @"password"); try { service.AutodiscoverUrl("delegatedMailbox@yourdomain", ValidateRedirectionUrlCallback); } catch(Exception exp) { Console.Writeline (exp.message) } This will connect to delgatedMailbox using youraccount. Bill


这篇关于Exchange Web服务托管API - 访问委派用户的收件箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆