Back to Devexpress

AppointmentImportSynchronizer Class

corelibraries-devexpress-dot-xtrascheduler-dot-exchange-36a7020d.md

latest4.8 KB
Original Source

AppointmentImportSynchronizer Class

Serves as a base class that implements appointment synchronization for import scenarios.

Namespace : DevExpress.XtraScheduler.Exchange

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public abstract class AppointmentImportSynchronizer :
    AppointmentSynchronizer
vb
Public MustInherit Class AppointmentImportSynchronizer
    Inherits AppointmentSynchronizer

The following members return AppointmentImportSynchronizer objects:

LibraryRelated API Members
Cross-Platform Class LibraryISchedulerStorageBase.CreateOutlookImportSynchronizer()
SchedulerStorageBase.CreateOutlookImportSynchronizer()
WinForms ControlsSchedulerDataStorage.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

csharp
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();
vb
Dim synchronizer As AppointmentImportSynchronizer = 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.
AddHandler synchronizer.AppointmentSynchronizing, AddressOf importSynchronizer_AppointmentSynchronizing
' The AppointmentSynchronized event indicates that the operation for a particular appointment is complete.
AddHandler synchronizer.AppointmentSynchronized, AddressOf importSynchronizer_AppointmentSynchronized
' Specify MS Outlook calendar path.
DirectCast(synchronizer, ISupportCalendarFolders).CalendarFolderName = comboBoxEdit1.EditValue.ToString()
' Perform the operation.
synchronizer.Synchronize()

Inheritance

Object AppointmentExchanger AppointmentSynchronizer AppointmentImportSynchronizer OutlookImportSynchronizer

See Also

AppointmentImportSynchronizer Members

Synchronization with Microsoft Outlook

CreateOutlookImportSynchronizer()

DevExpress.XtraScheduler.Exchange Namespace