Get "Show How" to meet at EWS

I was looking at adding some basic Exchange features to our intranet, and for now all this is pretty easy to do. However, I ran into a small problem, I do not know how to solve it.

I show our user calendars on my profile page, but I also need to show the Show As attribute for each meeting entry. This is where I get closer. Looking at the properties of an Assignment, there is nothing like a trick. ( http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.appointment_properties%28v=exchg.80%29.aspx )

Can any of you guys point me in the right direction?

+4
source share
1 answer

What you are looking for is LegacyFreeBusyStatus http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.legacyfreebusystatus(v = exchangeg.80) .aspx , which in the EWS method represents the ShowAs parameter when assigned . eg,

        CalendarView cv = new CalendarView(DateTime.Now,DateTime.Now.AddDays(200),100);
        FindItemsResults<Appointment>findresults = service.FindAppointments(WellKnownFolderName.Calendar, cv);

        foreach (Appointment aptval in findresults.Items)
        {
            Console.WriteLine(aptval.LegacyFreeBusyStatus);        
        }

Greetings Glen

+5
source

Source: https://habr.com/ru/post/1542625/


All Articles