Пример #1
0
        public static void CreateTimerJob(SPSite site)
        {
            var timerJob = new CleanupTJ(site);

            timerJob.Schedule = new SPWeeklySchedule
            {
                BeginDayOfWeek = System.DayOfWeek.Saturday,
                EndDayOfWeek   = System.DayOfWeek.Saturday,
                BeginHour      = 0,
                EndHour        = 1
            };


            timerJob.Update();
        }
Пример #2
0
        public static void CreateTimerJob(SPSite site)
        {
            var timerJob = new CleanupTJ(site);

            timerJob.Schedule = new SPWeeklySchedule
            {
                BeginDayOfWeek = System.DayOfWeek.Saturday,
                EndDayOfWeek = System.DayOfWeek.Saturday,
                BeginHour = 0,
                EndHour = 1
            };


            timerJob.Update();
        }