# C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddCubeField

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_Olap_Fluent_FieldItemFactory_AddCubeField_" data-uid="C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddCubeField*">AddCubeField Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_Olap_Fluent_FieldItemFactory_AddCubeField_" data-uid="C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddCubeField*"></a>
<h4 id="C1_Web_Mvc_Olap_Fluent_FieldItemFactory_AddCubeField_System_Action_C1_Web_Mvc_Olap_Fluent_CubeFieldBuilder__" data-uid="C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddCubeField(System.Action{C1.Web.Mvc.Olap.Fluent.CubeFieldBuilder})">AddCubeField(Action&lt;CubeFieldBuilder&gt;)</h4>
<div class="markdown level1 summary"><p>Add a <a class="xref" href="C1.Web.Mvc.Olap.CubeField.html">CubeField</a> instance updated by the specified action to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FieldItemFactory AddCubeField(Action&lt;CubeFieldBuilder&gt; build)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddCubeField(build As Action(Of CubeFieldBuilder)) As FieldItemFactory</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.action-1">Action</a>&lt;<a class="xref" href="C1.Web.Mvc.Olap.Fluent.CubeFieldBuilder.html">CubeFieldBuilder</a>&gt;</td>
      <td><span class="parametername">build</span></td>
      <td><p>The specified action to update TItem instance.</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.Olap.Fluent.FieldItemFactory.html">FieldItemFactory</a></td>
      <td><p>The factory instance</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Olap_Fluent_FieldItemFactory_AddCubeField_" data-uid="C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddCubeField*"></a>
<h4 id="C1_Web_Mvc_Olap_Fluent_FieldItemFactory_AddCubeField_C1_Web_Mvc_Olap_CubeField_" data-uid="C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddCubeField(C1.Web.Mvc.Olap.CubeField)">AddCubeField(CubeField)</h4>
<div class="markdown level1 summary"><p>Add a <a class="xref" href="C1.Web.Mvc.Olap.CubeField.html">CubeField</a> instance to the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual FieldItemFactory AddCubeField(CubeField item)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function AddCubeField(item As CubeField) As FieldItemFactory</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="C1.Web.Mvc.Olap.CubeField.html">CubeField</a></td>
      <td><span class="parametername">item</span></td>
      <td><p>The <a class="xref" href="C1.Web.Mvc.Olap.CubeField.html">CubeField</a> instance.</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.Olap.Fluent.FieldItemFactory.html">FieldItemFactory</a></td>
      <td><p>The factory instance</p>
</td>
    </tr>
  </tbody>
</table>
</div>
