corelibraries-devexpress-dot-xtrascheduler-dot-schedulercompatibility-dot-base64xmlobjectserialization.md
Turns the serialization mechanism formerly used for persistent objects (Appointment, Resource and AppointmentDependency objects) on or off.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
public static bool Base64XmlObjectSerialization { get; set; }
Public Shared Property Base64XmlObjectSerialization As Boolean
| Type | Description |
|---|---|
| Boolean |
True , to use Base64 encoding to serialize objects to the XML format; otherwise, false.
|
Starting from v15.2, the identifier property values in the Appointment, Resource and AppointmentDependency classes are of the Object type. To properly serialize them to the XML format, Base64 encoding is used by default.
To switch back to the former serialization mechanism, set the static property Base64XmlObjectSerialization to false , as illustrated in the following code. Include this code into initialization section of your application.
DevExpress.XtraScheduler.SchedulerCompatibility.Base64XmlObjectSerialization = false;
DevExpress.XtraScheduler.SchedulerCompatibility.Base64XmlObjectSerialization = False
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Base64XmlObjectSerialization 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-serialize-deserialize-appointments/CS/DXApplication1/SerializationHelper.cs#L17
#region #AppointmentSerialization
SchedulerCompatibility.Base64XmlObjectSerialization = true;
foreach (Appointment apt in scheduler.ActiveView.GetAppointments())
winforms-scheduler-serialize-deserialize-appointments/VB/DXApplication1/SerializationHelper.vb#L13
'#Region "#AppointmentSerialization"
SchedulerCompatibility.Base64XmlObjectSerialization = True
For Each apt As Appointment In scheduler.ActiveView.GetAppointments()
See Also