GetRecurrenceRange static method

RecurrenceRange GetRecurrenceRange(
  1. String recurrenceRangeString
)
Gets the recurrence range. The recurrence range string.

Implementation

/* private */
static RecurrenceRange GetRecurrenceRange(String recurrenceRangeString) {
  RecurrenceRange range;

  switch (recurrenceRangeString) {
    case XmlElementNames.NoEndRecurrence:
      range = new NoEndRecurrenceRange();
      break;
    case XmlElementNames.EndDateRecurrence:
      range = new EndDateRecurrenceRange();
      break;
    case XmlElementNames.NumberedRecurrence:
      range = new NumberedRecurrenceRange();
      break;
    default:
      throw new ServiceXmlDeserializationException(
          "InvalidRecurrenceRange($recurrenceRangeString)");
  }
  return range;
}