Skip to main content

AppointmentXmlPersistenceHelper Class

Contains methods to serialize and de-serilaze an appointment.

Namespace: DevExpress.XtraScheduler.Xml

Assembly: DevExpress.XtraScheduler.v23.2.Core.dll

NuGet Package: DevExpress.Scheduler.Core

Declaration

public class AppointmentXmlPersistenceHelper :
    SchedulerXmlPersistenceHelper

Remarks

Use the ToXml method to serialize an appointment, and the AppointmentXmlPersistenceHelper.ObjectFromXml method to de-serialize it.

Example

The following example demonstrates how to use the AppointmentXmlPersistenceHelper class to serialize/deserialize appointments to/from an XML string.

Note

A complete sample project is available at How to serialize and deserialize appointments in SchedulerControl

SchedulerCompatibility.Base64XmlObjectSerialization = true;
foreach (Appointment apt in scheduler.ActiveView.GetAppointments()) {
    AppointmentXmlPersistenceHelper helper =
        new AppointmentXmlPersistenceHelper(apt, null);
    serializedAppointments.Add(helper.ToXml());
}

Inheritance

Object
XmlPersistenceHelper
DevExpress.XtraScheduler.Xml.SchedulerXmlPersistenceHelper
AppointmentXmlPersistenceHelper
See Also