MapiCalendar RecurrencePattern

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);

Thank you for the detailed explanation

Hi,


You are welcome and please feel free to write to us in case of any other query/inquiry.

The issues you have found earlier (filed as EMAILNET-34974) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.