AppointmentXmlPersistenceHelper Class

Contains methods to serialize and de-serilaze an appointment.

Namespace: DevExpress.XtraScheduler.Xml

Assembly: DevExpress.XtraScheduler.v20.1.Core.dll

Declaration

public class AppointmentXmlPersistenceHelper :
    SchedulerXmlPersistenceHelper
Public Class AppointmentXmlPersistenceHelper
    Inherits SchedulerXmlPersistenceHelper

Remarks

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

Examples

The code sample demonstrates how to serialize an appointment, i.e., to create an XML string which is used to store an appointment in the data source bound to the scheduler. The resulting string is displayed as an appointment's description.

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

Inheritance

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