Skip to main content

OutlookImport.Import(String) Method

Imports appointments from the currently installed MS Outlook instance to the Scheduler.

Namespace: DevExpress.XtraScheduler.Outlook

Assembly: DevExpress.XtraScheduler.v24.1.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop

Declaration

public override void Import(
    string path
)

Parameters

Name Type Description
path String

Always String.Empty. Otherwise an exception is thrown.

Remarks

Use the OutlookImport.CalendarFolderName property to specify the path to the source Outlook calendar. Usually it is a string that looks like “\Outlook Data File\Calendar”. The following code snippet imports appointments from default Outlook calendar:

using DevExpress.XtraScheduler.Outlook;
// ...
string [] OutlookCalendarNames = OutlookExchangeHelper.GetOutlookCalendarPaths();
OutlookImport importer = (OutlookImport)schedulerStorage.CreateOutlookImporter();
importer.CalendarFolderName = OutlookCalendarNames[0];
((OutlookImport)importer).Import(String.Empty);
See Also