How do i find out if an appointment is private
Asked Answered
P

2

17

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.

Postoperative answered 29/10, 2010 at 11:21 Comment(0)
U
18

Look at the Sensitivity property.

Unclassical answered 29/10, 2010 at 11:53 Comment(1)
To access that property you first have to call Appointment.Load(PropertySet.FirstClassProperties), or maybe load that property specifically.Agnail
M
1

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 ?

Manners answered 7/3, 2012 at 17:17 Comment(1)
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 yearsGenerative

© 2022 - 2024 — McMap. All rights reserved.