A newer version of this page is available. Switch to the current version.

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

public static ReminderCollection ObjectFromXml(
    Appointment apt,
    string xml
)
Public Shared Function ObjectFromXml(
    apt As Appointment,
    xml As String
) As ReminderCollection

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.

Examples

This code snippet illustrates how to load Appointment.Reminders from an XML string. To save reminders to XML, use the ReminderCollectionXmlPersistenceHelper.CreateSaveInstance method.

Appointment apt = schedulerControl1.SelectedAppointments[0];
apt.Reminders.AddRange(ReminderCollectionXmlPersistenceHelper.ObjectFromXml(apt, reminderEdit.Text));
See Also