# C1.Schedule.AppointmentCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_AppointmentCollection" data-uid="C1.Schedule.AppointmentCollection" class="text-break">AppointmentCollection Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Schedule.AppointmentCollection.html">AppointmentCollection</a> is a collection of all
<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> objects in the C1Schedule component.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection</a>&lt;<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection-2">KeyedCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a>, <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</div>
    <div class="level3"><a class="xref" href="C1.Schedule.C1ObservableKeyedCollection-2.html">C1ObservableKeyedCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a>, <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</div>
    <div class="level4"><a class="xref" href="C1.Schedule.BaseCollection-1.html">BaseCollection</a>&lt;<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</div>
    <div class="level5"><span class="xref">AppointmentCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.Schedule.Appointment.html">Appointment</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Schedule.html">C1.Schedule</a></h6>
  <h6><strong>Assembly</strong>: C1.ScheduleCore.dll</h6>
  <h5 id="C1_Schedule_AppointmentCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class AppointmentCollection : BaseCollection&lt;Appointment&gt;, IList&lt;Appointment&gt;, ICollection&lt;Appointment&gt;, IList, ICollection, IReadOnlyList&lt;Appointment&gt;, IReadOnlyCollection&lt;Appointment&gt;, IEnumerable&lt;Appointment&gt;, IEnumerable, INotifyCollectionChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class AppointmentCollection
    Inherits BaseCollection(Of Appointment)
    Implements IList(Of Appointment), ICollection(Of Appointment), IList, ICollection, IReadOnlyList(Of Appointment), IReadOnlyCollection(Of Appointment), IEnumerable(Of Appointment), IEnumerable, INotifyCollectionChanged</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Actions" data-uid="C1.Schedule.AppointmentCollection.Actions">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Actions.html#C1_Schedule_AppointmentCollection_Actions">Actions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the associated <a class="xref" href="C1.Schedule.ActionCollection.html">ActionCollection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_CalendarInfo" data-uid="C1.Schedule.AppointmentCollection.CalendarInfo">
          <a class="xref" href="C1.Schedule.AppointmentCollection.CalendarInfo.html#C1_Schedule_AppointmentCollection_CalendarInfo">CalendarInfo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the associated <a class="xref" href="C1.Schedule.AppointmentCollection.CalendarInfo.html#C1_Schedule_AppointmentCollection_CalendarInfo">CalendarInfo</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Categories" data-uid="C1.Schedule.AppointmentCollection.Categories">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Categories.html#C1_Schedule_AppointmentCollection_Categories">Categories</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the associated <a class="xref" href="C1.Schedule.CategoryCollection.html">CategoryCollection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Contacts" data-uid="C1.Schedule.AppointmentCollection.Contacts">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Contacts.html#C1_Schedule_AppointmentCollection_Contacts">Contacts</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the associated <a class="xref" href="C1.Schedule.ContactCollection.html">ContactCollection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Days" data-uid="C1.Schedule.AppointmentCollection.Days">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Days.html#C1_Schedule_AppointmentCollection_Days">Days</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the associated <a class="xref" href="C1.Schedule.DayCollection.html">DayCollection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Labels" data-uid="C1.Schedule.AppointmentCollection.Labels">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Labels.html#C1_Schedule_AppointmentCollection_Labels">Labels</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the associated <a class="xref" href="C1.Schedule.LabelCollection.html">LabelCollection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Owners" data-uid="C1.Schedule.AppointmentCollection.Owners">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Owners.html#C1_Schedule_AppointmentCollection_Owners">Owners</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the associated <a class="xref" href="C1.Schedule.ContactCollection.html">ContactCollection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_ParentStorage" data-uid="C1.Schedule.AppointmentCollection.ParentStorage">
          <a class="xref" href="C1.Schedule.AppointmentCollection.ParentStorage.html#C1_Schedule_AppointmentCollection_ParentStorage">ParentStorage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the owning <a class="xref" href="C1.Schedule.AppointmentStorage.html">AppointmentStorage</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Reminders" data-uid="C1.Schedule.AppointmentCollection.Reminders">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Reminders.html#C1_Schedule_AppointmentCollection_Reminders">Reminders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the associated <a class="xref" href="C1.Schedule.ReminderCollection.html">ReminderCollection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Resources" data-uid="C1.Schedule.AppointmentCollection.Resources">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Resources.html#C1_Schedule_AppointmentCollection_Resources">Resources</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the associated <a class="xref" href="C1.Schedule.ResourceCollection.html">ResourceCollection</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Statuses" data-uid="C1.Schedule.AppointmentCollection.Statuses">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Statuses.html#C1_Schedule_AppointmentCollection_Statuses">Statuses</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference to the associated <a class="xref" href="C1.Schedule.StatusCollection.html">StatusCollection</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Add" data-uid="C1.Schedule.AppointmentCollection.Add">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Add.html#C1_Schedule_AppointmentCollection_Add">Add()</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Add_System_DateTime_System_DateTime_" data-uid="C1.Schedule.AppointmentCollection.Add(System.DateTime,System.DateTime)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Add.html#C1_Schedule_AppointmentCollection_Add_System_DateTime_System_DateTime_">Add(DateTime, DateTime)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Add_System_DateTime_System_DateTime_System_String_" data-uid="C1.Schedule.AppointmentCollection.Add(System.DateTime,System.DateTime,System.String)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Add.html#C1_Schedule_AppointmentCollection_Add_System_DateTime_System_DateTime_System_String_">Add(DateTime, DateTime, string)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Add_System_DateTime_System_TimeSpan_" data-uid="C1.Schedule.AppointmentCollection.Add(System.DateTime,System.TimeSpan)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Add.html#C1_Schedule_AppointmentCollection_Add_System_DateTime_System_TimeSpan_">Add(DateTime, TimeSpan)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_Add_System_DateTime_System_TimeSpan_System_String_" data-uid="C1.Schedule.AppointmentCollection.Add(System.DateTime,System.TimeSpan,System.String)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.Add.html#C1_Schedule_AppointmentCollection_Add_System_DateTime_System_TimeSpan_System_String_">Add(DateTime, TimeSpan, string)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_AddRange_C1_Schedule_Appointment___" data-uid="C1.Schedule.AppointmentCollection.AddRange(C1.Schedule.Appointment[])">
          <a class="xref" href="C1.Schedule.AppointmentCollection.AddRange.html#C1_Schedule_AppointmentCollection_AddRange_C1_Schedule_Appointment___">AddRange(Appointment[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds an array of <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> objects to the collection.
This methods clears collection before adding new items.
Don't use it if you want to save previously existed items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_ClearItems" data-uid="C1.Schedule.AppointmentCollection.ClearItems">
          <a class="xref" href="C1.Schedule.AppointmentCollection.ClearItems.html#C1_Schedule_AppointmentCollection_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_GetConflicts_C1_Schedule_Appointment_" data-uid="C1.Schedule.AppointmentCollection.GetConflicts(C1.Schedule.Appointment)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.GetConflicts.html#C1_Schedule_AppointmentCollection_GetConflicts_C1_Schedule_Appointment_">GetConflicts(Appointment)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the <a class="xref" href="C1.Schedule.AppointmentList.html">AppointmentList</a> object which contains
the list of occurrences of <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> objects
which are in conflict with the specified appointment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_GetOccurrences_C1_Schedule_Appointment_System_DateTime_System_DateTime_" data-uid="C1.Schedule.AppointmentCollection.GetOccurrences(C1.Schedule.Appointment,System.DateTime,System.DateTime)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.GetOccurrences.html#C1_Schedule_AppointmentCollection_GetOccurrences_C1_Schedule_Appointment_System_DateTime_System_DateTime_">GetOccurrences(Appointment, DateTime, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the <a class="xref" href="C1.Schedule.AppointmentList.html">AppointmentList</a> object which contains
the list of occurrences of the specified master appointment
in the specified time interval.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_GetOccurrences_C1_Schedule_BaseObject_System_String_System_DateTime_System_DateTime_System_Boolean_" data-uid="C1.Schedule.AppointmentCollection.GetOccurrences(C1.Schedule.BaseObject,System.String,System.DateTime,System.DateTime,System.Boolean)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.GetOccurrences.html#C1_Schedule_AppointmentCollection_GetOccurrences_C1_Schedule_BaseObject_System_String_System_DateTime_System_DateTime_System_Boolean_">GetOccurrences(BaseObject, string, DateTime, DateTime, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the <a class="xref" href="C1.Schedule.AppointmentList.html">AppointmentList</a> object which contains
the full list of <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> objects in the specified time interval.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_GetOccurrences_System_DateTime_System_DateTime_" data-uid="C1.Schedule.AppointmentCollection.GetOccurrences(System.DateTime,System.DateTime)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.GetOccurrences.html#C1_Schedule_AppointmentCollection_GetOccurrences_System_DateTime_System_DateTime_">GetOccurrences(DateTime, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the <a class="xref" href="C1.Schedule.AppointmentList.html">AppointmentList</a> object which contains
the full list of <a class="xref" href="C1.Schedule.Appointment.html">Appointment</a> objects in the specified time interval.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_InsertItem_System_Int32_C1_Schedule_Appointment_" data-uid="C1.Schedule.AppointmentCollection.InsertItem(System.Int32,C1.Schedule.Appointment)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.InsertItem.html#C1_Schedule_AppointmentCollection_InsertItem_System_Int32_C1_Schedule_Appointment_">InsertItem(int, Appointment)</a>
        </td>
        <td class="markdown level1 summary"><p>Overrides the default behavior.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_RefreshData_System_Boolean_" data-uid="C1.Schedule.AppointmentCollection.RefreshData(System.Boolean)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.RefreshData.html#C1_Schedule_AppointmentCollection_RefreshData_System_Boolean_">RefreshData(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Clears collection of days and fills them again honoring changes in system time, appointment collection or appointment properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_RefreshData_System_DateTime_System_DateTime_" data-uid="C1.Schedule.AppointmentCollection.RefreshData(System.DateTime,System.DateTime)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.RefreshData.html#C1_Schedule_AppointmentCollection_RefreshData_System_DateTime_System_DateTime_">RefreshData(DateTime, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Refreshed data for all days in the specified interval.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_RemoveItem_System_Int32_" data-uid="C1.Schedule.AppointmentCollection.RemoveItem(System.Int32)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.RemoveItem.html#C1_Schedule_AppointmentCollection_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Overrides the default behavior.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_SetItem_System_Int32_C1_Schedule_Appointment_" data-uid="C1.Schedule.AppointmentCollection.SetItem(System.Int32,C1.Schedule.Appointment)">
          <a class="xref" href="C1.Schedule.AppointmentCollection.SetItem.html#C1_Schedule_AppointmentCollection_SetItem_System_Int32_C1_Schedule_Appointment_">SetItem(int, Appointment)</a>
        </td>
        <td class="markdown level1 summary"><p>Overrides the default behavior.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_AppointmentAdded" data-uid="C1.Schedule.AppointmentCollection.AppointmentAdded">
          <a class="xref" href="C1.Schedule.AppointmentCollection.AppointmentAdded.html">AppointmentAdded</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when an appointment was added.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_AppointmentChanged" data-uid="C1.Schedule.AppointmentCollection.AppointmentChanged">
          <a class="xref" href="C1.Schedule.AppointmentCollection.AppointmentChanged.html">AppointmentChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when an appointment was changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_AppointmentCustomAction" data-uid="C1.Schedule.AppointmentCollection.AppointmentCustomAction">
          <a class="xref" href="C1.Schedule.AppointmentCollection.AppointmentCustomAction.html">AppointmentCustomAction</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a custom action of an appointment executes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_AppointmentRecurrenceStateChanged" data-uid="C1.Schedule.AppointmentCollection.AppointmentRecurrenceStateChanged">
          <a class="xref" href="C1.Schedule.AppointmentCollection.AppointmentRecurrenceStateChanged.html">AppointmentRecurrenceStateChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when RecurrenceState of an appointment is changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_AppointmentCollection_AppointmentRemoved" data-uid="C1.Schedule.AppointmentCollection.AppointmentRemoved">
          <a class="xref" href="C1.Schedule.AppointmentCollection.AppointmentRemoved.html">AppointmentRemoved</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when an appointment was removed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
