AppointmentImportSynchronizer Class
Serves as a base class that implements appointment synchronization for import scenarios.
Namespace: DevExpress.XtraScheduler.Exchange
Assembly: DevExpress.XtraScheduler.v24.1.Core.dll
NuGet Package: DevExpress.Scheduler.Core
Declaration
Related API Members
The following members return AppointmentImportSynchronizer objects:
Library | Related API Members |
---|---|
Cross-Platform Class Library | ISchedulerStorageBase.CreateOutlookImportSynchronizer() |
SchedulerStorageBase.CreateOutlookImportSynchronizer() | |
WinForms Controls | SchedulerDataStorage.CreateOutlookImportSynchronizer() |
Remarks
Use the SchedulerStorageBase.CreateOutlookImportSynchronizer object to create an object of the AppointmentImportSynchronizer type.
The following code snippet illustrates the use of the AppointmentImportSynchronizer class.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-scheduler-sync-with-outlook
AppointmentImportSynchronizer synchronizer = schedulerControl1.Storage.CreateOutlookImportSynchronizer();
// Specify the field that contains appointment identifier used by a third-party application.
synchronizer.ForeignIdFieldName = OutlookEntryIDFieldName;
// The AppointmentSynchronizing event allows you to control the operation for an individual appointment.
synchronizer.AppointmentSynchronizing += new AppointmentSynchronizingEventHandler(importSynchronizer_AppointmentSynchronizing);
// The AppointmentSynchronized event indicates that the operation for a particular appointment is complete.
synchronizer.AppointmentSynchronized += new AppointmentSynchronizedEventHandler(importSynchronizer_AppointmentSynchronized);
// Specify MS Outlook calendar path.
((ISupportCalendarFolders)synchronizer).CalendarFolderName = comboBoxEdit1.EditValue.ToString();
// Perform the operation.
synchronizer.Synchronize();
Inheritance
Object
AppointmentExchanger
AppointmentSynchronizer
AppointmentImportSynchronizer
See Also