Skip to main content
A newer version of this page is available. .

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.v19.2.Core.dll

Declaration

public static ReminderCollectionXmlPersistenceHelper CreateSaveInstance(
    Appointment apt
)

Parameters

Name Type Description
apt Appointment

An Appointment containing reminders.

Returns

Type Description
ReminderCollectionXmlPersistenceHelper

An instance of the ReminderCollectionXmlPersistenceHelper.

Example

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();

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateSaveInstance(Appointment) 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.

See Also