Back to Devexpress

RecurrenceInfo.FromXml(String) Method

corelibraries-devexpress-dot-xtrascheduler-dot-recurrenceinfo-dot-fromxml-x28-system-dot-string-x29.md

latest3.0 KB
Original Source

RecurrenceInfo.FromXml(String) Method

Reconstructs the recurrence information from an XML encoding.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public void FromXml(
    string val
)
vb
Public Sub FromXml(
    val As String
)

Parameters

NameTypeDescription
valString

A String value that specifies the XML encoding to use to reconstruct the recurrence information.

|

Remarks

The FromXml method, as well as corresponding XmlPersistenceHelper methods are for internal use only. Use the mappings mechanism to save and restore persistent objects instead.

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

wpf-scheduler-highlight-time-intervals/CS/SchedulerCellTemplate/MainWindow.xaml.cs#L54

csharp
RecurrenceInfo info = new RecurrenceInfo();
info.FromXml(region.RecurrenceInfo);
info.Start = info.Start.Date.AddTicks(region.Start.TimeOfDay.Ticks);

wpf-scheduler-highlight-time-intervals/VB/SchedulerCellTemplate/MainWindow.xaml.vb#L70

vb
Dim info As RecurrenceInfo = New RecurrenceInfo()
info.FromXml(region.RecurrenceInfo)
info.Start = info.Start.Date.AddTicks(region.Start.TimeOfDay.Ticks)

Implements

FromXml(String)

See Also

ToXml()

RecurrenceInfo Class

RecurrenceInfo Members

DevExpress.XtraScheduler Namespace