# C1.Report.DataSourceCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_DataSourceCollection" data-uid="C1.Report.DataSourceCollection" class="text-break">DataSourceCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.Report.DataSource.html">DataSource</a> objects.</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="C1.Report.ReportObjectCollection-1.html">ReportObjectCollection</a>&lt;<a class="xref" href="C1.Report.DataSource.html">DataSource</a>&gt;</div>
    <div class="level2"><a class="xref" href="C1.Report.ReportObjectList-1.html">ReportObjectList</a>&lt;<a class="xref" href="C1.Report.DataSource.html">DataSource</a>&gt;</div>
    <div class="level3"><a class="xref" href="C1.Report.ReportObjectNamedList-1.html">ReportObjectNamedList</a>&lt;<a class="xref" href="C1.Report.DataSource.html">DataSource</a>&gt;</div>
    <div class="level4"><span class="xref">DataSourceCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="C1.Report.DataSource.html">DataSource</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.Report.DataSource.html">DataSource</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.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Report.html">C1.Report</a></h6>
  <h6><strong>Assembly</strong>: C1.Report.dll</h6>
  <h5 id="C1_Report_DataSourceCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DataSourceCollection : ReportObjectNamedList&lt;DataSource&gt;, ICollection&lt;DataSource&gt;, IEnumerable&lt;DataSource&gt;, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DataSourceCollection
    Inherits ReportObjectNamedList(Of DataSource)
    Implements ICollection(Of DataSource), IEnumerable(Of DataSource), IList, ICollection, IEnumerable</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_Report_DataSourceCollection_Report" data-uid="C1.Report.DataSourceCollection.Report">
          <a class="xref" href="C1.Report.DataSourceCollection.Report.html#C1_Report_DataSourceCollection_Report">Report</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a> object owning this collection.</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_Report_DataSourceCollection_Add_C1_Report_DataSource_" data-uid="C1.Report.DataSourceCollection.Add(C1.Report.DataSource)">
          <a class="xref" href="C1.Report.DataSourceCollection.Add.html#C1_Report_DataSourceCollection_Add_C1_Report_DataSource_">Add(DataSource)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the <a class="xref" href="C1.Report.DataSource.html">DataSource</a> to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_DataSourceCollection_RemoveAt_System_Int32_" data-uid="C1.Report.DataSourceCollection.RemoveAt(System.Int32)">
          <a class="xref" href="C1.Report.DataSourceCollection.RemoveAt.html#C1_Report_DataSourceCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes an item from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
