EWS - Access All Shared Calendars

前端 未结 3 1625
粉色の甜心
粉色の甜心 2020-11-27 07:55

I\'ve got the following code:

    private void ListCalendarFolders(ref List items, int offset)
    {
        var pageSize = 100;
        va         


        
3条回答
  •  爱一瞬间的悲伤
    2020-11-27 08:18

    Glen post is perfect but binding folder gives error. However i solved this. Instead of this line:

    Folder SharedCalendaFolder = Folder.Bind(service, SharedCalendarId);
    

    use the following line for shared folder binding

    CalendarFolder calendar = CalendarFolder.Bind(service, new FolderId(WellKnownFolderName.Calendar, OwnerEmailAddress), new PropertySet());
    

    Here OwnerEmailAddress is Email Address of Owner or you can write ncCol[0].Mailbox.Address if using Glen's code.

提交回复
热议问题