Back to Devexpress

DXOutlook365Sync.SynchronizeCalendarsAsync() Method

windowsforms-devexpress-dot-xtrascheduler-dot-microsoft365calendar-dot-dxoutlook365sync-80024a4c.md

latest2.6 KB
Original Source

DXOutlook365Sync.SynchronizeCalendarsAsync() Method

Synchronizes the calendars.

Namespace : DevExpress.XtraScheduler.Microsoft365Calendar

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

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

Declaration

csharp
public Task SynchronizeCalendarsAsync()
vb
Public Function SynchronizeCalendarsAsync As Task

Returns

TypeDescription
Task

The asynchronous operation.

|

Remarks

Important

You must initialize the DXOutlook365Sync component before using the SynchronizeCalendarsAsync method. Otherwise, the DXOutlook365Sync component throws an exception.

Use the SynchronizeCalendarsAsync method to force the DXOutlook365Sync component to synchronize its Calendars collection with Outlook 365 calendars. The Calendars collection contains OutlookCalendarItem objects that correspond to Office365 calendars.

The DXOutlook365Sync component raises the CalendarSynchronizeComplete event when the calendar synchronization is complete. Use the e.Exception event parameter to get a description of the error if the operation failed.

See Also

Synchronization with Microsoft 365 Calendars

InitAsync

DXOutlook365Sync Class

DXOutlook365Sync Members

DevExpress.XtraScheduler.Microsoft365Calendar Namespace