Back to Devexpress

SchedulerCompatibility.Base64XmlObjectSerialization Property

corelibraries-devexpress-dot-xtrascheduler-dot-schedulercompatibility-dot-base64xmlobjectserialization.md

latest3.9 KB
Original Source

SchedulerCompatibility.Base64XmlObjectSerialization Property

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

Declaration

csharp
public static bool Base64XmlObjectSerialization { get; set; }
vb
Public Shared Property Base64XmlObjectSerialization As Boolean

Property Value

TypeDescription
Boolean

True , to use Base64 encoding to serialize objects to the XML format; otherwise, false.

|

Remarks

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.

csharp
DevExpress.XtraScheduler.SchedulerCompatibility.Base64XmlObjectSerialization = false;
vb
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

csharp
#region #AppointmentSerialization
SchedulerCompatibility.Base64XmlObjectSerialization = true;
foreach (Appointment apt in scheduler.ActiveView.GetAppointments())

winforms-scheduler-serialize-deserialize-appointments/VB/DXApplication1/SerializationHelper.vb#L13

vb
'#Region "#AppointmentSerialization"
            SchedulerCompatibility.Base64XmlObjectSerialization = True
            For Each apt As Appointment In scheduler.ActiveView.GetAppointments()

See Also

SchedulerCompatibility Class

SchedulerCompatibility Members

DevExpress.XtraScheduler Namespace