Skip to main content
All docs
V24.1

DXOutlook365Sync.InitAsync(IOutlookEngine) Method

Initializes the DXOutlook365Sync component.

Namespace: DevExpress.XtraScheduler.Microsoft365Calendar

Assembly: DevExpress.XtraScheduler.v24.1.Microsoft365Calendar.dll

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

Declaration

public Task<InitStatus> InitAsync(
    IOutlookEngine engine
)

Parameters

Name Type Description
engine IOutlookEngine

A class that can work with Microsoft 365 calendars (for example, OutlookEngine).

Returns

Type Description
Task<InitStatus>

A value that indicates the result of initialization.

Remarks

Call the InitAsync method to initialize the DXOutlook365Sync component. The method opens a Sign in to your account window that requires signing in to Microsoft 365.

Sign In - WinForms Synchronization with Outlook 365 Calendars

The InitAsync method returns an InitStatus enumeration value that indicates whether the initialization succeeded, failed, or has already been initialized. The InitAsync method does nothing if the DXOutlook365Sync component has already been initialized.

The DXOutlook365Sync component automatically populates its Calendars collection if the initialization was successful. This collection contains OutlookCalendarItem objects that correspond to Office365 calendars.

See Also