We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Loop Day of Week

i need to loop threw the MapiCalendarDayOfWeek in a mapicalendar, how can i do this

Hi Joseph,

We are sorry for a delayed response.

Could you please elaborate your requirements and share with us in detail what exactly you want to achieve? I am unable to understand your requirements from the online liner statement you have posted. Please share the details for getting further assistance in this regard.

http://www.aspose.com/docs/display/emailnet/Aspose.Email.Outlook.MapiCalendarDayOfWeek+Enumeration

i cant seem to find a way to loop the day of weeks in a mapicalender recurrence

foreach (MapiCalendarDayOfWeek wk in AppStore.aptStore.calendar.Recurrence.RecurrencePattern)
{
if(MapiCalendarDayOfWeek == MapiCalendarDayOfWeek.Monday)
{
}
}

Hi Joseph,


You can use the following code sample to retrieve the days in the recurrence pattern. Please let us know if this doesn’t help you in your requirements and provide a sample ICS file in this regard.

Sample Code:

Appointment app = Appointment.Load(“test.ics”);

WeeklyRecurrencePattern patt = (WeeklyRecurrencePattern)app.RecurrrencePattern;

foreach (CalendarDay day in patt.StartDays)

{

Console.WriteLine(day.ToString());

}