使用Exchange Web服务访问共享日历

时间:2011-02-28 07:52:56

标签: exchangewebservices

我正在尝试使用交换网络服务从交换机访问共享日历,有人可以向我提供有关如何执行此操作的信息吗?

我试过了:

ExchangeService myService = new ExchangeService (ExchangeVersion.Exchange2007_SP1);
myService.Credentials = new NetworkCredential ("user@domain.com", "12345");

但我可能并不总是拥有这些帐户的密码,而我登录的帐户确实拥有共享日历访问权限。

1 个答案:

答案 0 :(得分:6)

我已设法让它现在正常工作

Dim _cal As New Microsoft.Exchange.WebServices.Data.FolderId(Microsoft.Exchange.WebServices.Data.WellKnownFolderName.Calendar, New Microsoft.Exchange.WebServices.Data.Mailbox(_otherAddress))
Dim _calendarView As New Microsoft.Exchange.WebServices.Data.CalendarView(_startTime.Date, _endTime.Date.AddDays(1))

For Each appointmentItem As Microsoft.Exchange.WebServices.Data.Appointment In _
    service.FindAppointments( _
    _cal, _
    _calendarView)
Next