ReminderCollectionXmlPersistenceHelper.ObjectFromXml(Appointment, String) Method
Loads the reminder collection from an XML string.
Namespace: DevExpress.XtraScheduler.Xml
Assembly: DevExpress.XtraScheduler.v18.2.Core.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
apt | Appointment | An Appointment for which reminders are loaded. |
xml | String | A string that is the XML representation of a reminder collection. |
Returns
Type | Description |
---|---|
ReminderCollection | A ReminderCollection object that is the collection of reminders for an appointment. |
Example
This code snippet illustrates how to load Appointment.Reminders from an XML string. To save reminders to XML, use the ReminderCollectionXmlPersistenceHelper.CreateSaveInstance method.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-save-and-retrieve-reminders-as-xml-strings-t151260
Appointment apt = schedulerControl1.SelectedAppointments[0];
apt.Reminders.AddRange(ReminderCollectionXmlPersistenceHelper.ObjectFromXml(apt, reminderEdit.Text));
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ObjectFromXml(Appointment, String) method.
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.