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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_Olap_Fluent_FieldItemFactory_AddPivotField_" data-uid="C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddPivotField*">AddPivotField Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_Olap_Fluent_FieldItemFactory_AddPivotField_" data-uid="C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddPivotField*"></a>
<h4 id="C1_Web_Mvc_Olap_Fluent_FieldItemFactory_AddPivotField_System_Action_C1_Web_Mvc_Olap_Fluent_PivotFieldBuilder__" data-uid="C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddPivotField(System.Action{C1.Web.Mvc.Olap.Fluent.PivotFieldBuilder})">AddPivotField(Action&lt;PivotFieldBuilder&gt;)</h4>
<div class="markdown level1 summary"><p>Add a <a class="xref" href="C1.Web.Mvc.Olap.PivotField.html">PivotField</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 AddPivotField(Action&lt;PivotFieldBuilder&gt; build)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddPivotField(build As Action(Of PivotFieldBuilder)) 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.PivotFieldBuilder.html">PivotFieldBuilder</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_AddPivotField_" data-uid="C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddPivotField*"></a>
<h4 id="C1_Web_Mvc_Olap_Fluent_FieldItemFactory_AddPivotField_C1_Web_Mvc_Olap_PivotField_" data-uid="C1.Web.Mvc.Olap.Fluent.FieldItemFactory.AddPivotField(C1.Web.Mvc.Olap.PivotField)">AddPivotField(PivotField)</h4>
<div class="markdown level1 summary"><p>Add a <a class="xref" href="C1.Web.Mvc.Olap.PivotField.html">PivotField</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 AddPivotField(PivotField item)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function AddPivotField(item As PivotField) 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.PivotField.html">PivotField</a></td>
      <td><span class="parametername">item</span></td>
      <td><p>The <a class="xref" href="C1.Web.Mvc.Olap.PivotField.html">PivotField</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>
