Aspose.Email.Examples.CSharp.Email.Outlook.GenerateRecurrenceFromRecurrenceRule.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // ExStart:GenerateRecurrenceFromRecurrenceRule
            // The path to the File directory.
            string dataDir = RunExamples.GetDataDir_Outlook();

            DateTime startDate = new DateTime(2015, 7, 16);
            DateTime endDate = new DateTime(2015, 8, 1);
            MapiCalendar app1 = new MapiCalendar("test location", "test summary", "test description", startDate, endDate);

            app1.StartDate = startDate;
            app1.EndDate = endDate;

            string pattern = "DTSTART;TZID=Europe/London:20150831T080000\r\nDTEND;TZID=Europe/London:20150831T083000\r\nRRULE:FREQ=DAILY;INTERVAL=1;COUNT=7\r\nEXDATE:20150831T070000Z,20150904T070000Z";
            app1.Recurrence.RecurrencePattern = MapiCalendarRecurrencePatternFactory.FromString(pattern);
            // ExEnd:GenerateRecurrenceFromRecurrenceRule
        }         
    }
GenerateRecurrenceFromRecurrenceRule