Skip to main content
All docs
V26.1
  • Outlook365CalendarMergeEventArgs.ActionType Property

    Gets or sets a merge action.

    Namespace: DevExpress.XtraScheduler.Microsoft365Calendar

    Assembly: DevExpress.XtraScheduler.v26.1.Microsoft365Calendar.dll

    NuGet Package: DevExpress.Scheduler.Core.Desktop.Microsoft365Calendar

    Declaration

    public MergeActionType ActionType { get; set; }

    Property Value

    Type Description
    MergeActionType

    A value that specifies the merge action.

    Available values:

    Name Description
    DoNothing

    Do nothing.

    InsertOrUpdateAppointment

    Insert or update an appointment.

    InsertOrUpdateEvent

    Insert or update an event.

    DeleteAppointment

    Delete an appointment.

    DeleteEvent

    Delete an event.

    Remarks

    The following example demonstrates how to import Outlook 365 events that have not started.

    using DevExpress.XtraScheduler.Microsoft365Calendar;
    
    dxOutlook365Sync1.MergeSingleItem += DxOutlook365Sync1_MergeSingleItem;
    private void DxOutlook365Sync1_MergeSingleItem(object sender, Outlook365CalendarMergeEventArgs e) {
        if(e.OutlookEvent != null && e.OutlookEvent.Start.ToDateTime() < DateTime.Now)
            e.ActionType = MergeActionType.DoNothing;
    }
    
    See Also