# C1.Schedule.RecurrencePattern.Occurrences

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_RecurrencePattern_Occurrences_" data-uid="C1.Schedule.RecurrencePattern.Occurrences*">Occurrences Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_RecurrencePattern_Occurrences_" data-uid="C1.Schedule.RecurrencePattern.Occurrences*"></a>
<h4 id="C1_Schedule_RecurrencePattern_Occurrences" data-uid="C1.Schedule.RecurrencePattern.Occurrences">Occurrences</h4>
<div class="markdown level1 summary"><p>Gets or sets the number of occurrences for the recurrence pattern.
This property allows the definition of a recurrence pattern that
is only valid for the specified number of subsequent occurrences.
For example, you can set this property to 10 for a formal training
course that will be held on the next ten Thursday evenings.
The default value is 0.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Occurrences { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Occurrences As Integer</code></pre>
</div>
<h5 id="C1_Schedule_RecurrencePattern_Occurrences_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property must be coordinated with other properties
when setting up a recurrence pattern.
If the <a class="xref" href="C1.Schedule.RecurrencePattern.PatternEndDate.html#C1_Schedule_RecurrencePattern_PatternEndDate">PatternEndDate</a> property
or the <a class="xref" href="C1.Schedule.RecurrencePattern.Occurrences.html#C1_Schedule_RecurrencePattern_Occurrences">Occurrences</a> property is set, the pattern
is considered to be finite and the <a class="xref" href="C1.Schedule.RecurrencePattern.NoEndDate.html#C1_Schedule_RecurrencePattern_NoEndDate">NoEndDate</a> property is false.
If neither <a class="xref" href="C1.Schedule.RecurrencePattern.PatternEndDate.html#C1_Schedule_RecurrencePattern_PatternEndDate">PatternEndDate</a> nor <a class="xref" href="C1.Schedule.RecurrencePattern.Occurrences.html#C1_Schedule_RecurrencePattern_Occurrences">Occurrences</a> is set,
the pattern is considered infinite and <a class="xref" href="C1.Schedule.RecurrencePattern.NoEndDate.html#C1_Schedule_RecurrencePattern_NoEndDate">NoEndDate</a> is true.</p>
</div>
</div>
