# C1.Web.Mvc.Fluent.MapLayerListBaseFactory-3.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_Fluent_MapLayerListBaseFactory_3_Add_" data-uid="C1.Web.Mvc.Fluent.MapLayerListBaseFactory`3.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_Fluent_MapLayerListBaseFactory_3_Add_" data-uid="C1.Web.Mvc.Fluent.MapLayerListBaseFactory`3.Add*"></a>
<h4 id="C1_Web_Mvc_Fluent_MapLayerListBaseFactory_3_Add__2_System_Func__1___0__System_Func___0___1__" data-uid="C1.Web.Mvc.Fluent.MapLayerListBaseFactory`3.Add``2(System.Func{`1,``0},System.Func{``0,``1})">Add&lt;TControl, TBuilder&gt;(Func&lt;TOwner, TControl&gt;, Func&lt;TControl, TBuilder&gt;)</h4>
<div class="markdown level1 summary"><p>Add a layer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected TBuilder Add&lt;TControl, TBuilder&gt;(Func&lt;TOwner, TControl&gt; createControl, Func&lt;TControl, TBuilder&gt; createBuilder) where TControl : MapLayerBase&lt;T&gt; where TBuilder : MapLayerBaseBuilder&lt;T, TControl, TBuilder&gt;</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Add(Of TControl As MapLayerBase(Of T), TBuilder As MapLayerBaseBuilder(Of T, TControl, TBuilder))(createControl As Func(Of TOwner, TControl), createBuilder As Func(Of TControl, TBuilder)) As TBuilder</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.func-2">Func</a>&lt;TOwner, TControl&gt;</td>
      <td><span class="parametername">createControl</span></td>
      <td><p>The function to create a layer for the specified owner.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;TControl, TBuilder&gt;</td>
      <td><span class="parametername">createBuilder</span></td>
      <td><p>The builder for the layer.</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><span class="xref">TBuilder</span></td>
      <td><p>The layer builder.</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">TControl</span></td>
      <td><p>Specifies the layer type.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">TBuilder</span></td>
      <td><p>The layer builder type.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
