예제 #1
0
        // Token: 0x06002FD8 RID: 12248 RVA: 0x001172F8 File Offset: 0x001154F8
        public static string GenerateWhen(UserContext userContext, ExDateTime startTime, ExDateTime endTime, Recurrence recurrence)
        {
            string result;

            using (CalendarItem calendarItem = CalendarItem.Create(userContext.MailboxSession, userContext.CalendarFolderId))
            {
                calendarItem.StartTime  = startTime;
                calendarItem.EndTime    = endTime;
                calendarItem.Recurrence = recurrence;
                result = calendarItem.GenerateWhen();
            }
            return(result);
        }
        // Token: 0x06000799 RID: 1945 RVA: 0x00039F34 File Offset: 0x00038134
        public static string GenerateWhen(UserContext userContext, ExDateTime startTime, ExDateTime endTime, Recurrence recurrence)
        {
            if (userContext == null)
            {
                throw new ArgumentNullException("userContext");
            }
            if (recurrence == null)
            {
                throw new ArgumentNullException("recurrence");
            }
            string result;

            using (CalendarItem calendarItem = CalendarItem.Create(userContext.MailboxSession, userContext.CalendarFolderId))
            {
                calendarItem.StartTime  = startTime;
                calendarItem.EndTime    = endTime;
                calendarItem.Recurrence = recurrence;
                result = calendarItem.GenerateWhen();
            }
            return(result);
        }