NumberOfOccurrences property

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

Implementation

int get NumberOfOccurrences => this._numberOfOccurrences!;
set 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();
  }
}