/// <summary> /// Binds to an occurence of an existing appointment and loads the specified set of properties. /// Calling this method results in a call to EWS. /// </summary> /// <param name="service">The service to use to bind to the appointment.</param> /// <param name="recurringMasterId">The Id of the recurring master that the index represents an occurrence of.</param> /// <param name="occurenceIndex">The index of the occurrence.</param> /// <param name="propertySet">The set of properties to load.</param> /// <returns>An Appointment instance representing the appointment occurence corresponding to the specified occurence index.</returns> public static Task <Appointment> BindToOccurrence( ExchangeService service, ItemId recurringMasterId, int occurenceIndex, PropertySet propertySet) { AppointmentOccurrenceId occurenceId = new AppointmentOccurrenceId(recurringMasterId.UniqueId, occurenceIndex); return(Appointment.Bind( service, occurenceId, propertySet)); }
/// <summary> /// Binds to an occurence of an existing appointment and loads the specified set of properties. /// Calling this method results in a call to EWS. /// </summary> /// <param name="service">The service to use to bind to the appointment.</param> /// <param name="recurringMasterId">The Id of the recurring master that the index represents an occurrence of.</param> /// <param name="occurenceIndex">The index of the occurrence.</param> /// <param name="propertySet">The set of properties to load.</param> /// <returns>An Appointment instance representing the appointment occurence corresponding to the specified occurence index.</returns> public static Appointment BindToOccurrence( ExchangeService service, ItemId recurringMasterId, int occurenceIndex, PropertySet propertySet) { AppointmentOccurrenceId occurenceId = new AppointmentOccurrenceId(recurringMasterId.UniqueId, occurenceIndex); return Appointment.Bind( service, occurenceId, propertySet); }