Back to Devexpress

DXOutlook365Sync.CalendarSynchronizeComplete Event

windowsforms-devexpress-dot-xtrascheduler-dot-microsoft365calendar-dot-dxoutlook365sync-66c3693c.md

latest3.6 KB
Original Source

DXOutlook365Sync.CalendarSynchronizeComplete Event

Occurs once the calendar synchronization is complete (with or without errors).

Namespace : DevExpress.XtraScheduler.Microsoft365Calendar

Assembly : DevExpress.XtraScheduler.v25.2.Microsoft365Calendar.dll

NuGet Package : DevExpress.Scheduler.Core.Desktop.Microsoft365Calendar

Declaration

csharp
public event EventHandler<OperationCompleteEventArgs> CalendarSynchronizeComplete
vb
Public Event CalendarSynchronizeComplete As EventHandler(Of OperationCompleteEventArgs)

Event Data

The CalendarSynchronizeComplete event's data class is DevExpress.XtraScheduler.Microsoft365Calendar.OperationCompleteEventArgs.

Remarks

The DXOutlook365Sync component automatically synchronizes the Calendars collection with Outlook 365 calendars once its initialization is complete. The CalendarSynchronizeComplete event occurs after the calendar synchronization is finished (with or without errors). Use the e.Exception event parameter to get a description of the error if the operation failed.

Use the SynchronizeCalendarsAsync() method to force the DXOutlook365Sync component to synchronize the calendars.

Read the following topic for detailed information and examples: Synchronization with Microsoft 365 Calendars.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CalendarSynchronizeComplete event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-scheduler-synchronize-appointments-with-outlook-365/CS/Outlook365Sync/MainWindow.xaml.cs#L15

csharp
dXOutlook365Sync.InitComplete += OnInitComplete;
dXOutlook365Sync.CalendarSynchronizeComplete += OnCalendarSynchronizeComplete;
dXOutlook365Sync.CustomizeAppointmentToEvent += OnCustomizeAppointmentToEvent;

See Also

InitAsync

SynchronizeCalendarsAsync()

DXOutlook365Sync Class

DXOutlook365Sync Members

DevExpress.XtraScheduler.Microsoft365Calendar Namespace