Io uso Exchange Server Managed API. Come faccio a sapere se un appuntamento è privato? Non sembra esserci un metodo o una proprietà nella classe "Appointment".Come faccio a sapere se un appuntamento è privato
risposta
Guardate la proprietà Sensitivity.
Scuse, non sembrano essere in grado di commentare @ risposta di Stuart sopra e non volevano creare una nuova domanda.
Se stai usando ExchangeService.FindAppointments
, gli articoli restituiti siano Microsoft.Exchange.WebServices.Data.Appointment
Il Sensitivity
proprietà sembra essere allo stesso livello?
Come si fa (lo @Luke) l'accesso che la proprietà per favore? Hai bisogno di usare ExchangeService.LoadPropertiesForItems
?
Dim apartmentProperties = New PropertySet (AppointmentSchema.Start, AppointmentSchema.End, AppointmentSchema.Subject, AppointmentSchema.Location, AppointmentSchema.MyResponseType, AppointmentSchema.Sensitivity) Per ogni appuntamento In service.FindAppointoint (New FolderId (WellKnownFolderName.Calendar, username & " @ "& Dominio), Nuovo CalendarView (StartDate, EndDate) con {.PropertySet = apartmentProperties}) 'Intervallo massimo di 2 anni – Brent
per accedere a tale proprietà è necessario prima di chiamare Appointment.Load (PropertySet.FirstClassProperties), o forse caricare la proprietà specificamente. – RenniePet