windowsforms-devexpress-dot-xtrascheduler-dot-googlecalendar-dot-dxgooglecalendarsync-b75371ed.md
Triggers the synchronization.
Namespace : DevExpress.XtraScheduler.GoogleCalendar
Assembly : DevExpress.XtraScheduler.v25.2.GoogleCalendar.dll
NuGet Package : DevExpress.Win.Scheduler.GoogleCalendar
public void Synchronize()
Public Sub Synchronize
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
private void BbiSynchronize_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
this.gcSyncComponent.Synchronize();
}
this.dxGoogleCalendarSync1.CalendarService = this.service;
this.dxGoogleCalendarSync1.Synchronize();
}
winforms-scheduler-import-google-calendar/CS/GoogleCalendarExample/Form1.cs#L32
this.dxGoogleCalendarSync1.CalendarId = CalendarEntry.Id;
this.dxGoogleCalendarSync1.Synchronize();
}
winforms-scheduler-sync-with-google-calendars/VB/GCSync/Form1.vb#L50
Private Sub BbiSynchronize_ItemClick(ByVal sender As Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
gcSyncComponent.Synchronize()
End Sub
Me.dxGoogleCalendarSync1.CalendarService = Me.service
Me.dxGoogleCalendarSync1.Synchronize()
End Sub
See Also