AppointmentXmlPersistenceHelper Class
Contains methods to serialize and de-serilaze an appointment.
Namespace: DevExpress.XtraScheduler.Xml
Assembly: DevExpress.XtraScheduler.v18.1.Core.dll
Declaration
Remarks
Use the ToXml method to serialize an appointment, and the AppointmentXmlPersistenceHelper.ObjectFromXml method to de-serialize it.
Example
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.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-schedulercontrol-api-t224044
SchedulerCompatibility.Base64XmlObjectSerialization = true;
foreach (Appointment apt in scheduler.ActiveView.GetAppointments()) {
AppointmentXmlPersistenceHelper helper =
new AppointmentXmlPersistenceHelper(apt, null);
apt.Description = helper.ToXml();
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentXmlPersistenceHelper class.
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.