# C1.Schedule.MappingCollectionBase-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_MappingCollectionBase_1" data-uid="C1.Schedule.MappingCollectionBase`1" class="text-break">MappingCollectionBase&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of mappings for properties of the
<a class="xref" href="C1.Schedule.BasePersistableObject.html">BasePersistableObject</a> object to the appropriate data fields.
Names of properties are keys in this collection.</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.MappingInfo.html">MappingInfo</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.string">string</a>, <a class="xref" href="C1.Schedule.MappingInfo.html">MappingInfo</a>&gt;</div>
    <div class="level3"><span class="xref">MappingCollectionBase&lt;T&gt;</span></div>
      <div class="level4"><a class="xref" href="C1.Schedule.AppointmentMappingCollection.html">AppointmentMappingCollection</a></div>
      <div class="level4"><a class="xref" href="C1.Schedule.BaseObjectMappingCollection-1.html">BaseObjectMappingCollection&lt;T&gt;</a></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.MappingInfo.html">MappingInfo</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.MappingInfo.html">MappingInfo</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.MappingInfo.html">MappingInfo</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.MappingInfo.html">MappingInfo</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.MappingInfo.html">MappingInfo</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.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</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_MappingCollectionBase_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ComponentConverter))]
public class MappingCollectionBase&lt;T&gt; : KeyedCollection&lt;string, MappingInfo&gt;, IList&lt;MappingInfo&gt;, ICollection&lt;MappingInfo&gt;, IList, ICollection, IReadOnlyList&lt;MappingInfo&gt;, IReadOnlyCollection&lt;MappingInfo&gt;, IEnumerable&lt;MappingInfo&gt;, IEnumerable, IComponent, IDisposable where T : BasePersistableObject, new()</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(ComponentConverter))&gt;
Public Class MappingCollectionBase(Of T As {BasePersistableObject, New})
    Inherits KeyedCollection(Of String, MappingInfo)
    Implements IList(Of MappingInfo), ICollection(Of MappingInfo), IList, ICollection, IReadOnlyList(Of MappingInfo), IReadOnlyCollection(Of MappingInfo), IEnumerable(Of MappingInfo), IEnumerable, IComponent, IDisposable</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>The type of the objects for mapping.
It should be derived from the <a class="xref" href="C1.Schedule.BasePersistableObject.html">BasePersistableObject</a>class
and have the default parameter-less constructor.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1__ctor" data-uid="C1.Schedule.MappingCollectionBase`1.#ctor">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.-ctor.html#C1_Schedule_MappingCollectionBase_1__ctor">MappingCollectionBase()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.MappingCollectionBase-1.html">MappingCollectionBase&lt;T&gt;</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_MappingCollectionBase_1_Comparer" data-uid="C1.Schedule.MappingCollectionBase`1.Comparer">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.Comparer.html#C1_Schedule_MappingCollectionBase_1_Comparer">Comparer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the generic equality comparer that is used to determine equality
of keys in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_Count" data-uid="C1.Schedule.MappingCollectionBase`1.Count">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.Count.html#C1_Schedule_MappingCollectionBase_1_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements actually contained in
the <a class="xref" href="C1.Schedule.MappingCollectionBase-1.html">MappingCollectionBase&lt;T&gt;</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_IdMapping" data-uid="C1.Schedule.MappingCollectionBase`1.IdMapping">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.IdMapping.html#C1_Schedule_MappingCollectionBase_1_IdMapping">IdMapping</a>
        </td>
        <td class="markdown level1 summary"><p>Returns <a class="xref" href="C1.Schedule.MappingInfo.html">MappingInfo</a> object for the <a class="xref" href="C1.Schedule.BasePersistableObject.Id.html#C1_Schedule_BasePersistableObject_Id">Id</a> property.
If the storage object is bound to a data source via its DataSource property,
the properties of this object allow the <a class="xref" href="C1.Schedule.BasePersistableObject.Id.html#C1_Schedule_BasePersistableObject_Id">Id</a> property<br>
to be bound to the appropriate field in the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_IndexMapping" data-uid="C1.Schedule.MappingCollectionBase`1.IndexMapping">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.IndexMapping.html#C1_Schedule_MappingCollectionBase_1_IndexMapping">IndexMapping</a>
        </td>
        <td class="markdown level1 summary"><p>Returns <a class="xref" href="C1.Schedule.MappingInfo.html">MappingInfo</a> object for the <span class="xref">C1.Schedule.BasePersistableObject.Index</span> property.
If the storage object is bound to a data source via its DataSource property,
the properties of this object allow the <span class="xref">C1.Schedule.BasePersistableObject.Index</span> property
to be bound to the appropriate field in the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_Site" data-uid="C1.Schedule.MappingCollectionBase`1.Site">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.Site.html#C1_Schedule_MappingCollectionBase_1_Site">Site</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the ISite associated with the IComponent.</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_MappingCollectionBase_1_Add_System_Type_System_String_System_Boolean_System_Object_" data-uid="C1.Schedule.MappingCollectionBase`1.Add(System.Type,System.String,System.Boolean,System.Object)">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.Add.html#C1_Schedule_MappingCollectionBase_1_Add_System_Type_System_String_System_Boolean_System_Object_">Add(Type, string, bool, object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_Add_System_Type_System_Type_System_String_System_Boolean_System_Object_" data-uid="C1.Schedule.MappingCollectionBase`1.Add(System.Type,System.Type,System.String,System.Boolean,System.Object)">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.Add.html#C1_Schedule_MappingCollectionBase_1_Add_System_Type_System_Type_System_String_System_Boolean_System_Object_">Add(Type, Type, string, bool, object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_Dispose" data-uid="C1.Schedule.MappingCollectionBase`1.Dispose">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.Dispose.html#C1_Schedule_MappingCollectionBase_1_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs application-defined tasks associated with freeing, releasing,
or resetting unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_GetKeyForItem_C1_Schedule_MappingInfo_" data-uid="C1.Schedule.MappingCollectionBase`1.GetKeyForItem(C1.Schedule.MappingInfo)">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.GetKeyForItem.html#C1_Schedule_MappingCollectionBase_1_GetKeyForItem_C1_Schedule_MappingInfo_">GetKeyForItem(MappingInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns property name as the key for collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_InsertItem_System_Int32_C1_Schedule_MappingInfo_" data-uid="C1.Schedule.MappingCollectionBase`1.InsertItem(System.Int32,C1.Schedule.MappingInfo)">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.InsertItem.html#C1_Schedule_MappingCollectionBase_1_InsertItem_System_Int32_C1_Schedule_MappingInfo_">InsertItem(int, MappingInfo)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_NewItem" data-uid="C1.Schedule.MappingCollectionBase`1.NewItem">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.NewItem.html#C1_Schedule_MappingCollectionBase_1_NewItem">NewItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Implementation in derived classes should return new object of type T.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_ReadObject__0_System_Object_System_Boolean_" data-uid="C1.Schedule.MappingCollectionBase`1.ReadObject(`0,System.Object,System.Boolean)">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.ReadObject.html#C1_Schedule_MappingCollectionBase_1_ReadObject__0_System_Object_System_Boolean_">ReadObject(T, object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Fills internal object derived from BasePersistableObject
with values from specified bound object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_ReadObject__0_System_Object_System_Boolean_System_Boolean_" data-uid="C1.Schedule.MappingCollectionBase`1.ReadObject(`0,System.Object,System.Boolean,System.Boolean)">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.ReadObject.html#C1_Schedule_MappingCollectionBase_1_ReadObject__0_System_Object_System_Boolean_System_Boolean_">ReadObject(T, object, bool, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Fills internal object derived from BasePersistableObject
with values from specified bound object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_MappingCollectionBase_1_WriteObject__0_System_Object_" data-uid="C1.Schedule.MappingCollectionBase`1.WriteObject(`0,System.Object)">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.WriteObject.html#C1_Schedule_MappingCollectionBase_1_WriteObject__0_System_Object_">WriteObject(T, object)</a>
        </td>
        <td class="markdown level1 summary"><p>When implemented in a derived class fills boundObject
with values from specified internalObject.</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_MappingCollectionBase_1_Disposed" data-uid="C1.Schedule.MappingCollectionBase`1.Disposed">
          <a class="xref" href="C1.Schedule.MappingCollectionBase-1.Disposed.html">Disposed</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the method that handles the Disposed event of a component.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
