Represents an object that imports MS Outlook calendar items into Scheduler appointments.
NuGet Package: DevExpress.Scheduler.CoreDesktop
[CLSCompliant(false)] public class OutlookImport : AppointmentImporter, ISupportCalendarFolders
<CLSCompliant(False)> Public Class OutlookImport Inherits AppointmentImporter Implements ISupportCalendarFolders
The main functionality of the OutlookImport class is provided by the AppointmentImporter.Import method.
You should specify the SchedulerStorage component to store imported appointments when creating a
OutlookImport instance. The OutlookImport.CalendarFolderName property enables you to specify a source calendar different from the default.
The OutlookImport.SetCalendarProvider method provides you with the ability to process Outlook items before they are loaded.
A set of events controls the import process - the AppointmentImporter.AppointmentImporting is raised before each appointment is imported, and gives you the ability to not import a particular item by setting the AppointmentCancelEventArgs.Cancel to true. The AppointmentImporter.AppointmentImported event is raised after each appointment has been imported, and the AppointmentExchanger.OnException enables you to catch import errors and respond adequately - even by terminating the process by calling the AppointmentExchanger.Terminate method.