Ejemplo n.º 1
0
 /// <summary>
 /// Binds to an existing appointment and loads its first class 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="id">The Id of the appointment to bind to.</param>
 /// <returns>An Appointment instance representing the appointment corresponding to the specified Id.</returns>
 public static new Task <Appointment> Bind(ExchangeService service, ItemId id)
 {
     return(Appointment.Bind(
                service,
                id,
                PropertySet.FirstClassProperties));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Binds to the master appointment of a recurring series 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="occurrenceId">The Id of one of the occurrences in the series.</param>
        /// <param name="propertySet">The set of properties to load.</param>
        /// <returns>An Appointment instance representing the master appointment of the recurring series to which the specified occurrence belongs.</returns>
        public static Task <Appointment> BindToRecurringMaster(
            ExchangeService service,
            ItemId occurrenceId,
            PropertySet propertySet)
        {
            RecurringAppointmentMasterId recurringMasterId = new RecurringAppointmentMasterId(occurrenceId.UniqueId);

            return(Appointment.Bind(
                       service,
                       recurringMasterId,
                       propertySet));
        }
Ejemplo n.º 3
0
        /// <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));
        }