I use Exchange Server Managed API. How do I find out if an appointment is private? There doesn't seem to be a method or property in the "Appointment" class.
How do i find out if an appointment is private
Asked Answered
Look at the Sensitivity property.
To access that property you first have to call Appointment.Load(PropertySet.FirstClassProperties), or maybe load that property specifically. –
Agnail
Apologies, I don't seem to be able to comment on @Stuart's answer above and didn't want to create a new question.
If you're using ExchangeService.FindAppointments
, the returned Items are Microsoft.Exchange.WebServices.Data.Appointment
The Sensitivity
property seems to be at the same level?
How do you (did you @Luke) access that property please?
Do you need to use ExchangeService.LoadPropertiesForItems
?
Dim apartmentProperties = New PropertySet(AppointmentSchema.Start, AppointmentSchema.End, AppointmentSchema.Subject, AppointmentSchema.Location, AppointmentSchema.MyResponseType, AppointmentSchema.Sensitivity) For Each appointment In service.FindAppointments(New FolderId(WellKnownFolderName.Calendar, username & "@" & Domain), New CalendarView(StartDate, EndDate) With {.PropertySet = apartmentProperties}) 'Max range of 2 years –
Generative
© 2022 - 2024 — McMap. All rights reserved.