NumberOfOccurrences property

int NumberOfOccurrences
Gets or sets the number of occurrences after which the recurrence ends. Setting NumberOfOccurrences resets EndDate.

Implementation

int get NumberOfOccurrences => this._numberOfOccurrences!;
void NumberOfOccurrences=(int value)

Implementation

set NumberOfOccurrences(int value) {
  if (value < 1) {
    throw new ArgumentException(
        "NumberOfOccurrences: $value, NumberOfOccurrencesMustBeGreaterThanZero");
  }
  if (this.CanSetFieldValue(this._numberOfOccurrences, value)) {
    this._numberOfOccurrences = value;
    this._endDate = null;
    this.Changed();
  }
}