# C1.Schedule.BaseObjectMappingCollection-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Schedule_BaseObjectMappingCollection_1" data-uid="C1.Schedule.BaseObjectMappingCollection`1" class="text-break">BaseObjectMappingCollection&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents a generic collection of mappings for properties
of the <a class="xref" href="C1.Schedule.BaseObject.html">BaseObject</a> derived objects to appropriate data fields.</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"><a class="xref" href="C1.Schedule.MappingCollectionBase-1.html">MappingCollectionBase</a>&lt;T&gt;</div>
    <div class="level4"><span class="xref">BaseObjectMappingCollection&lt;T&gt;</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.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_BaseObjectMappingCollection_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BaseObjectMappingCollection&lt;T&gt; : MappingCollectionBase&lt;T&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 : BaseObject, new()</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BaseObjectMappingCollection(Of T As {BaseObject, New})
    Inherits MappingCollectionBase(Of T)
    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.BaseObject.html">BaseObject</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_BaseObjectMappingCollection_1__ctor" data-uid="C1.Schedule.BaseObjectMappingCollection`1.#ctor">
          <a class="xref" href="C1.Schedule.BaseObjectMappingCollection-1.-ctor.html#C1_Schedule_BaseObjectMappingCollection_1__ctor">BaseObjectMappingCollection()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.BaseObjectMappingCollection-1.html">BaseObjectMappingCollection&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_BaseObjectMappingCollection_1_CaptionMapping" data-uid="C1.Schedule.BaseObjectMappingCollection`1.CaptionMapping">
          <a class="xref" href="C1.Schedule.BaseObjectMappingCollection-1.CaptionMapping.html#C1_Schedule_BaseObjectMappingCollection_1_CaptionMapping">CaptionMapping</a>
        </td>
        <td class="markdown level1 summary"><p>Returns <a class="xref" href="C1.Schedule.MappingInfo.html">MappingInfo</a> object for <a class="xref" href="C1.Schedule.BaseObject.MenuCaption.html#C1_Schedule_BaseObject_MenuCaption">MenuCaption</a>
property of the object.
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.BaseObject.MenuCaption.html#C1_Schedule_BaseObject_MenuCaption">MenuCaption</a>
property of the object to be bound to the appropriate field in the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BaseObjectMappingCollection_1_ColorMapping" data-uid="C1.Schedule.BaseObjectMappingCollection`1.ColorMapping">
          <a class="xref" href="C1.Schedule.BaseObjectMappingCollection-1.ColorMapping.html#C1_Schedule_BaseObjectMappingCollection_1_ColorMapping">ColorMapping</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.BaseObject.Color.html#C1_Schedule_BaseObject_Color">Color</a>
property of the object.
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.BaseObject.Color.html#C1_Schedule_BaseObject_Color">Color</a>
property of the object to be bound to the appropriate field in the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BaseObjectMappingCollection_1_TextMapping" data-uid="C1.Schedule.BaseObjectMappingCollection`1.TextMapping">
          <a class="xref" href="C1.Schedule.BaseObjectMappingCollection-1.TextMapping.html#C1_Schedule_BaseObjectMappingCollection_1_TextMapping">TextMapping</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.BaseObject.Text.html#C1_Schedule_BaseObject_Text">Text</a>
property of the object.
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.BaseObject.Text.html#C1_Schedule_BaseObject_Text">Text</a>
property of the object to be bound to the appropriate field in the data source.</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_BaseObjectMappingCollection_1_ReadObject__0_System_Object_System_Boolean_" data-uid="C1.Schedule.BaseObjectMappingCollection`1.ReadObject(`0,System.Object,System.Boolean)">
          <a class="xref" href="C1.Schedule.BaseObjectMappingCollection-1.ReadObject.html#C1_Schedule_BaseObjectMappingCollection_1_ReadObject__0_System_Object_System_Boolean_">ReadObject(T, object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Fills BaseObject object with values from specified boundObject.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Schedule_BaseObjectMappingCollection_1_WriteObject__0_System_Object_" data-uid="C1.Schedule.BaseObjectMappingCollection`1.WriteObject(`0,System.Object)">
          <a class="xref" href="C1.Schedule.BaseObjectMappingCollection-1.WriteObject.html#C1_Schedule_BaseObjectMappingCollection_1_WriteObject__0_System_Object_">WriteObject(T, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Fills boundObject with values from specified BaseObject object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
