ReminderCollectionXmlPersistenceHelper.CreateSaveInstance(Appointment) Method

Creates and initializes an instance of the helper for serializing the reminder collection using XML format.

Namespace: DevExpress.XtraScheduler.Xml

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

Declaration

public static ReminderCollectionXmlPersistenceHelper CreateSaveInstance(
    Appointment apt
)
Public Shared Function CreateSaveInstance(
    apt As Appointment
) As ReminderCollectionXmlPersistenceHelper

Parameters

Name Type Description
apt Appointment

An Appointment containing reminders.

Returns

Type Description
ReminderCollectionXmlPersistenceHelper

An instance of the ReminderCollectionXmlPersistenceHelper.

Examples

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

Appointment apt = schedulerControl1.SelectedAppointments[0];
ReminderCollectionXmlPersistenceHelper myHelper = ReminderCollectionXmlPersistenceHelper.CreateSaveInstance(apt);
string reminderInfo = myHelper.ToXml();
See Also