# C1.Web.Mvc.Fluent.ControlBuilderFactory.CollectionViewService

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_Fluent_ControlBuilderFactory_CollectionViewService_" data-uid="C1.Web.Mvc.Fluent.ControlBuilderFactory.CollectionViewService*">CollectionViewService Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_Fluent_ControlBuilderFactory_CollectionViewService_" data-uid="C1.Web.Mvc.Fluent.ControlBuilderFactory.CollectionViewService*"></a>
<h4 id="C1_Web_Mvc_Fluent_ControlBuilderFactory_CollectionViewService__1_System_Collections_Generic_IEnumerable___0__" data-uid="C1.Web.Mvc.Fluent.ControlBuilderFactory.CollectionViewService``1(System.Collections.Generic.IEnumerable{``0})">CollectionViewService&lt;T&gt;(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Create a CollectionViewServiceBuilder.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CollectionViewServiceBuilder&lt;T&gt; CollectionViewService&lt;T&gt;(IEnumerable&lt;T&gt; sourceCollection = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CollectionViewService(Of T)(Optional sourceCollection As IEnumerable(Of T) = Nothing) As CollectionViewServiceBuilder(Of T)</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.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
      <td><span class="parametername">sourceCollection</span></td>
      <td><p>The sourceCollection</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.Web.Mvc.Fluent.CollectionViewServiceBuilder-1.html">CollectionViewServiceBuilder</a>&lt;T&gt;</td>
      <td><p>The CollectionViewServiceBuilder</p>
</td>
    </tr>
  </tbody>
</table>
<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 data item type</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_ControlBuilderFactory_CollectionViewService_" data-uid="C1.Web.Mvc.Fluent.ControlBuilderFactory.CollectionViewService*"></a>
<h4 id="C1_Web_Mvc_Fluent_ControlBuilderFactory_CollectionViewService_System_Collections_Generic_IEnumerable_System_Object__" data-uid="C1.Web.Mvc.Fluent.ControlBuilderFactory.CollectionViewService(System.Collections.Generic.IEnumerable{System.Object})">CollectionViewService(IEnumerable&lt;object&gt;)</h4>
<div class="markdown level1 summary"><p>Create a CollectionViewServiceBuilder.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CollectionViewServiceBuilder&lt;object&gt; CollectionViewService(IEnumerable&lt;object&gt; sourceCollection = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CollectionViewService(Optional sourceCollection As IEnumerable(Of Object) = Nothing) As CollectionViewServiceBuilder(Of Object)</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.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">sourceCollection</span></td>
      <td><p>The sourceCollection</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.Web.Mvc.Fluent.CollectionViewServiceBuilder-1.html">CollectionViewServiceBuilder</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><p>The CollectionViewServiceBuilder</p>
</td>
    </tr>
  </tbody>
</table>
</div>
