Exemplo n.º 1
0
        /// <summary>
        ///     Gets default calendar profile for the user
        /// </summary>
        /// <returns>
        /// </returns>
        public static CalendarSyncProfile GetDefaultSyncProfile()
        {
            var syncProfile = new CalendarSyncProfile
            {
                SyncSettings    = SyncSettings.GetDefault(),
                OutlookSettings =
                {
                    OutlookOptions = OutlookOptionsEnum.DefaultProfile |
                                     OutlookOptionsEnum.DefaultCalendar
                },
                CalendarEntryOptions =
                    CalendarEntryOptionsEnum.Description | CalendarEntryOptionsEnum.Attendees |
                    CalendarEntryOptionsEnum.AttendeesToDescription |
                    CalendarEntryOptionsEnum.Reminders | CalendarEntryOptionsEnum.AsAppointments
            };

            syncProfile.SetCalendarTypes();
            return(syncProfile);
        }
 /// <summary>
 ///     Gets default calendar profile for the user
 /// </summary>
 /// <returns>
 /// </returns>
 public static CalendarSyncProfile GetDefaultSyncProfile()
 {
     var syncProfile = new CalendarSyncProfile
     {
         SyncSettings = SyncSettings.GetDefault(),
         OutlookSettings =
         {
             OutlookOptions = OutlookOptionsEnum.DefaultProfile |
                              OutlookOptionsEnum.DefaultCalendar
         },
         CalendarEntryOptions =
             CalendarEntryOptionsEnum.Description | CalendarEntryOptionsEnum.Attendees |
             CalendarEntryOptionsEnum.AttendeesToDescription |
             CalendarEntryOptionsEnum.Reminders | CalendarEntryOptionsEnum.AsAppointments
     };
     syncProfile.SetCalendarTypes();
     return syncProfile;
 }