本文介绍了共享日历和Exchange Web服务托管API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


 


我们公司有很多用户及其带有日历的电子邮件地址。所有日历都与一个Exchange帐户共享,这意味着,通过使用此特殊帐户登录,我可以在OWA中看到所有用户的日历。


 


我的问题是,当我尝试使用EWS(Exchange Web Services)API查找某​​些共享日历的任命时,我总是只获得该特殊虚拟用户的日历(仅为共享而创建)。 / p>

 


以下是我的工作:


ExchangeService服务=新的ExchangeService();


service.Credentials = new NetworkCredentials(" [email protected]"," password");


service.Url =" https: // myexchangewebservicesurl";


CalendarFolder文件夹= CalendarFolder.Bind(service,WellKnownFolderName.Calendar);


现在当我调用folder.FindAppoitments时,我得到了我在证书中使用的帐户只有任命(实际上我什么也得不到,因为该帐户没有任何指定),但我希望有一个选项来c浏览一些共享日历。


 


有谁知道怎么做?非常感谢..

解决方案


Hello,

there are many users and their e-mail addresses with calendars in our company. All the calendars are shared with one Exchange account, that means, by logging in with this special account, I can see in OWA all the users' calendars.

My problem is, that when I try to find appoitments of some of the shared calendars using EWS (Exchange Web Services) API, I always get just calendar of that special virtual user (created just for sharing).

Here is what I do:

ExchangeService service = new ExchangeService();

service.Credentials = new NetworkCredentials("[email protected]", "password");

service.Url = "https://myexchangewebservicesurl";

CalendarFolder folder = CalendarFolder.Bind(service, WellKnownFolderName.Calendar);

now when I call folder.FindAppoitments I get only appoitments (actually I get nothing because the account has no appoitments) of the account I used in credentials, but I want to have an option to choose some of the shared calendar.

Does anyone know how to do that? Thank you very much..

解决方案


这篇关于共享日历和Exchange Web服务托管API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 02:00