Hi Ashley,
This flag is used to create tasks with “Regenerate new task” option. You may please use the following code with and without this flag and observe the difference as shown in the attached image. Please give it a try and let us know the feedback.
String path = "";
DateTime startDate = new DateTime(2015, 04, 30, 10, 00, 00);
MapiTask task = new MapiTask("abc", "def", startDate, startDate.AddHours(1));
task.State = MapiTaskState.NotAssigned;
var recur2 = new MapiCalendarDailyRecurrencePattern
{
PatternType = MapiCalendarRecurrencePatternType.Day,
Period = 1,
EndType = MapiCalendarRecurrenceEndType.NeverEnd,
OccurrenceCount = 10,
SlidingFlag = true,
WeekStartDay = DayOfWeek.Sunday,
};
task.Recurrence = recur2;
task.Save(path + "SlidingFlag_true.msg", TaskSaveFormat.Msg);
var recur3 = new MapiCalendarDailyRecurrencePattern
{
PatternType = MapiCalendarRecurrencePatternType.Day,
Period = 1,
EndType = MapiCalendarRecurrenceEndType.NeverEnd,
OccurrenceCount = 10,
SlidingFlag = false,
WeekStartDay = DayOfWeek.Sunday,
};
task.Recurrence = recur3;
task.Save(path + "SlidingFlag_false.msg", TaskSaveFormat.Msg);