DXGoogleCalendarSync.StateTrackingMode Property

Gets or sets whether this DXGoogleCalendarSync should automatically write session information to an .xml file.

Namespace: DevExpress.XtraScheduler.GoogleCalendar

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

Declaration

[DefaultValue(StateTrackingMode.Auto)]
public StateTrackingMode StateTrackingMode { get; set; }
<DefaultValue(StateTrackingMode.Auto)>
Public Property StateTrackingMode As StateTrackingMode

Property Value

Type Default Description
StateTrackingMode

Auto

A StateTrackingMode enumerator value that specifies whether this DXGoogleCalendarSync should automatically write session information to an .xml file.

Remarks

If a DXGoogleCalendarSync component finds a Scheduler Appointment with the same ID as an existing Google Event but these objects contents differ, the component uses logged session information to determine whether it should assign Event data to an Appointment, or vice versa.

DXGoogleCalendarSync automatically writes this session information to the DXGoogleCalendarSync.xml file inside your project folder upon any Appointment edit. If you want to manually save this information, change the StateTrackingMode property to StateTrackingMode.Manual and call the DXGoogleCalendarSync.Save / DXGoogleCalendarSync.Load methods.

If you edit both a Google Event and its matching Appointment, and then call the DevExpress.XtraScheduler.GoogleCalendar.DXGoogleCalendarSync.Sync method, session info will not be enough to determine which of the Event-Appointment object pair should be taken as a "valid" object. In these cases the DXGoogleCalendarSync.ConflictDetected event raises.

See Also