AppointmentRecurrenceFormExtension.GetValue(String, Appointment) Method
In This Article
Returns information about appointment recurrences.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public static RecurrenceInfo GetValue(
string name,
Appointment pattern
)
#Parameters
Name | Type | Description |
---|---|---|
name | String | The control name. |
pattern | Appointment | The recurrence pattern. |
#Returns
Type | Description |
---|---|
Recurrence |
Information about appointment recurrences. |
#Remarks
Controller:
public ActionResult RecurrenceFormInfo() {
Appointment pattern = new Appointment(AppointmentType.Pattern,
new DateTime(2012, 10, 20, 3, 0, 0), new DateTime(2012, 10, 20, 4, 0, 0));
RecurrenceInfo recurrenceInfo = AppointmentRecurrenceFormExtension.GetValue("RecurrenceControl", pattern);
return View("RecurrenceFormInfo", (object)recurrenceInfo.ToXml());
}
#Concept
See Also