# C1.Schedule.AppointmentCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_AppointmentCollection_Add_" data-uid="C1.Schedule.AppointmentCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_AppointmentCollection_Add_" data-uid="C1.Schedule.AppointmentCollection.Add*"></a>
<h4 id="C1_Schedule_AppointmentCollection_Add" data-uid="C1.Schedule.AppointmentCollection.Add">Add()</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> object
with default settings and adds it to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Appointment Add()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add() As Appointment</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Schedule.Appointment.html">Appointment</a></td>
      <td><p>The <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_AppointmentCollection_Add_" data-uid="C1.Schedule.AppointmentCollection.Add*"></a>
<h4 id="C1_Schedule_AppointmentCollection_Add_System_DateTime_System_DateTime_" data-uid="C1.Schedule.AppointmentCollection.Add(System.DateTime,System.DateTime)">Add(DateTime, DateTime)</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> object
with specified parameters and adds it to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Appointment Add(DateTime start, DateTime end)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(start As Date, [end] As Date) As Appointment</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value which specifies
the start date and time of the appointment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value which specifies
the end date and time of the appointment.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Schedule.Appointment.html">Appointment</a></td>
      <td><p>The <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_AppointmentCollection_Add_" data-uid="C1.Schedule.AppointmentCollection.Add*"></a>
<h4 id="C1_Schedule_AppointmentCollection_Add_System_DateTime_System_TimeSpan_" data-uid="C1.Schedule.AppointmentCollection.Add(System.DateTime,System.TimeSpan)">Add(DateTime, TimeSpan)</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> object
with specified parameters and adds it to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Appointment Add(DateTime start, TimeSpan duration)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(start As Date, duration As TimeSpan) As Appointment</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value which specifies
the start date and time of the appointment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a></td>
      <td><span class="parametername">duration</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a> value which specifies
the duration of the appointment.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Schedule.Appointment.html">Appointment</a></td>
      <td><p>The <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_AppointmentCollection_Add_" data-uid="C1.Schedule.AppointmentCollection.Add*"></a>
<h4 id="C1_Schedule_AppointmentCollection_Add_System_DateTime_System_DateTime_System_String_" data-uid="C1.Schedule.AppointmentCollection.Add(System.DateTime,System.DateTime,System.String)">Add(DateTime, DateTime, string)</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> object
with specified parameters and adds it to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Appointment Add(DateTime start, DateTime end, string subject)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(start As Date, [end] As Date, subject As String) As Appointment</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value which specifies
the start date and time of the appointment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value which specifies
the end date and time of the appointment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">subject</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value which contains
the subject of the appointment.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Schedule.Appointment.html">Appointment</a></td>
      <td><p>The <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_AppointmentCollection_Add_" data-uid="C1.Schedule.AppointmentCollection.Add*"></a>
<h4 id="C1_Schedule_AppointmentCollection_Add_System_DateTime_System_TimeSpan_System_String_" data-uid="C1.Schedule.AppointmentCollection.Add(System.DateTime,System.TimeSpan,System.String)">Add(DateTime, TimeSpan, string)</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> object
with specified parameters and adds it to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Appointment Add(DateTime start, TimeSpan duration, string subject)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(start As Date, duration As TimeSpan, subject As String) As Appointment</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value which specifies
the start date and time of the appointment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a></td>
      <td><span class="parametername">duration</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a> value which specifies
the duration of the appointment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">subject</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value which contains
the subject of the appointment.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Schedule.Appointment.html">Appointment</a></td>
      <td><p>The <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
