Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
How to add a variance programmatically?
posted

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.