Hello,
I wonder how I can add a variance of a recurring appointment programmatically. The CalendarInfo is not bound to a datasource. I expected something like: myRecurringAppointment.Recurrence.Variances.Add(new Appointment(...)), but there is no Add method.
Also some "tricks" like assigning the RecurrenceId of the root appointment to the variance isn't possible due to the missing setter of the RecurrenceId property.
So, how can I add a variance programmatically? Every help with this is highly appreciated.
A member of a recurring series becomes a variance when one or more of its property values deviates from that of the root appointment. You cannot arbitrarily make an appointment a variance, but if you explicitly set its Subject, StartDateTime, Description, Location, etc., to a different value, the appointment will then become a variance.
I'm trying to create appointments and its recurrences/variances programmatically and I couldn't find a way to create a variance from a recurring appointment.
Could you help me with that? If you have a sample code, that would be great.
Hi,
How to get reference to Variance because when i do like this.
var results = this._uMonthViewSingle.CalendarInfo.GetAppointmentsInRange(exPrev.ValidFrom.Value, exPrev.ValidTill.Value);
result[0].isremoved = True;
After that I get result.Count() is 0.
How it is possible to avoid losing reference to edited Appointment?