Back to Devexpress

AppointmentSynchronizingEventArgs.Operation Property

corelibraries-devexpress-dot-xtrascheduler-dot-appointmentsynchronizingeventargs.md

latest3.5 KB
Original Source

AppointmentSynchronizingEventArgs.Operation Property

Specifies what type of synchronization operation should be performed.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public SynchronizeOperation Operation { get; set; }
vb
Public Property Operation As SynchronizeOperation

Property Value

TypeDescription
SynchronizeOperation

A SynchronizeOperation enumeration value.

|

Available values:

NameDescription
Create

A new appointment will be created in the synchronization target.

| | Replace |

An appointment in the synchronization target will be replaced by an appropriate appointment from the synchronization source.

| | Delete |

An appointment in the synchronization target will be deleted.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Operation property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-sync-outlook-calendars/CS/SyncWithOutlook/OutlookSynchronizerHelper.cs#L126

csharp
void AnalyzeAndHandleCurrentOperation(DevExpress.XtraScheduler.Outlook.OutlookAppointmentSynchronizingEventArgs eventArgs) {
    switch(eventArgs.Operation) {
        case SynchronizeOperation.Create:

winforms-scheduler-sync-outlook-calendars/VB/SyncWithOutlook/OutlookSynchronizerHelper.vb#L165

vb
Private Sub AnalyzeAndHandleCurrentOperation(ByVal eventArgs As DevExpress.XtraScheduler.Outlook.OutlookAppointmentSynchronizingEventArgs)
    Select Case eventArgs.Operation
        Case SynchronizeOperation.Create

See Also

How to: Export Data to vCalendar

How to: Import Data from vCalendar

AppointmentSynchronizingEventArgs Class

AppointmentSynchronizingEventArgs Members

DevExpress.XtraScheduler Namespace