Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXOutlook365Sync.InitAsync(IOutlookEngine) Method

Initializes the DXOutlook365Sync component.

Namespace: DevExpress.XtraScheduler.Microsoft365Calendar

Assembly: DevExpress.XtraScheduler.v24.2.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