Back to Devexpress

DXGoogleCalendarSync.CalendarService Property

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

latest4.2 KB
Original Source

DXGoogleCalendarSync.CalendarService Property

Gets or sets a Google Calendar Service required to access Google Events.

Namespace : DevExpress.XtraScheduler.GoogleCalendar

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

NuGet Package : DevExpress.Win.Scheduler.GoogleCalendar

Declaration

csharp
public object CalendarService { get; set; }
vb
Public Property CalendarService As Object

Property Value

TypeDescription
Object

A Google Calendar Service object required to access and modify Google Calendar Events.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the CalendarService 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-with-google-calendars/CS/GCSync/Form1.cs#L72

csharp
});
this.gcSyncComponent.CalendarService = this.service;
await UpdateCalendarListUI();

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

csharp
this.dxGoogleCalendarSync1.CalendarId = ApplicationConfig.Instance.CalendarId;
this.dxGoogleCalendarSync1.CalendarService = this.service;
this.dxGoogleCalendarSync1.Synchronize();

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

csharp
void Synchronize() {
    this.dxGoogleCalendarSync1.CalendarService = CalendarService;
    this.dxGoogleCalendarSync1.CalendarId = CalendarEntry.Id;

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

vb
service = New CalendarService(New BaseClientService.Initializer() With {.HttpClientInitializer = credential, .ApplicationName = "Google Sync Sample"})
gcSyncComponent.CalendarService = service
Await UpdateCalendarListUI()

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

vb
Me.dxGoogleCalendarSync1.CalendarId = ApplicationConfig.Instance.CalendarId
Me.dxGoogleCalendarSync1.CalendarService = Me.service
Me.dxGoogleCalendarSync1.Synchronize()

See Also

Google Calendars

DXGoogleCalendarSync Class

DXGoogleCalendarSync Members

DevExpress.XtraScheduler.GoogleCalendar Namespace