Back to Devexpress

DXGoogleCalendarSync.Synchronize() Method

windowsforms-devexpress-dot-xtrascheduler-dot-googlecalendar-dot-dxgooglecalendarsync-b75371ed.md

latest4.0 KB
Original Source

DXGoogleCalendarSync.Synchronize() Method

Triggers the synchronization.

Namespace : DevExpress.XtraScheduler.GoogleCalendar

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

NuGet Package : DevExpress.Win.Scheduler.GoogleCalendar

Declaration

csharp
public void Synchronize()
vb
Public Sub Synchronize

Remarks

The Synchronize method starts synchronization between a Scheduler and a Google Calendar in a UI thread. To retrieve Google Calendar data asynchronously, call the DXGoogleCalendarSync.SynchronizeAsync method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Synchronize() method.

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-with-google-calendars/CS/GCSync/Form1.cs#L47

csharp
private void BbiSynchronize_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
    this.gcSyncComponent.Synchronize();
}

winforms-scheduler-sync-google-event-colors-with-labels/CS/SchedulerGSync/SchedulerGSync/MainForm.cs#L73

csharp
this.dxGoogleCalendarSync1.CalendarService = this.service;
    this.dxGoogleCalendarSync1.Synchronize();
}

winforms-scheduler-import-google-calendar/CS/GoogleCalendarExample/Form1.cs#L32

csharp
this.dxGoogleCalendarSync1.CalendarId = CalendarEntry.Id;
    this.dxGoogleCalendarSync1.Synchronize();
}

winforms-scheduler-sync-with-google-calendars/VB/GCSync/Form1.vb#L50

vb
Private Sub BbiSynchronize_ItemClick(ByVal sender As Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
    gcSyncComponent.Synchronize()
End Sub

winforms-scheduler-sync-google-event-colors-with-labels/VB/SchedulerGSync/SchedulerGSync/MainForm.vb#L77

vb
Me.dxGoogleCalendarSync1.CalendarService = Me.service
    Me.dxGoogleCalendarSync1.Synchronize()
End Sub

See Also

SynchronizeAsync()

Google Calendars

DXGoogleCalendarSync Class

DXGoogleCalendarSync Members

DevExpress.XtraScheduler.GoogleCalendar Namespace