# C1.Schedule.Appointment.Duration

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_Appointment_Duration_" data-uid="C1.Schedule.Appointment.Duration*">Duration Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_Appointment_Duration_" data-uid="C1.Schedule.Appointment.Duration*"></a>
<h4 id="C1_Schedule_Appointment_Duration" data-uid="C1.Schedule.Appointment.Duration">Duration</h4>
<div class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a> value indicating the
duration of the appointment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TimeSpan Duration { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Duration As TimeSpan</code></pre>
</div>
<h5 id="C1_Schedule_Appointment_Duration_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>At setting this property, if it's value is not equal to the whole
number of days, the <a class="xref" href="C1.Schedule.Appointment.AllDayEvent.html#C1_Schedule_Appointment_AllDayEvent">AllDayEvent</a> property will be set to false.</p>
</div>
</div>
