mber">30</span>); <span class="highlight-comment">// Default is TimeSpan.Zero (or never)</span>
<span class="highlight-comment">// Set the time the task will repeat to 1 day.</span>
tt.Repetition.Duration = TimeSpan.FromDays(<span class="highlight-number">1</span>); <span class="highlight-comment">// Default is TimeSpan.Zero (or never)</span>
<span class="highlight-comment">// Set the task to end even if running when the duration is over</span>
tt.Repetition.StopAtDurationEnd = <span class="highlight-keywor