# C1.PivotEngine.PivotField.GetUniqueValues

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_PivotEngine_PivotField_GetUniqueValues_" data-uid="C1.PivotEngine.PivotField.GetUniqueValues*">GetUniqueValues Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_PivotEngine_PivotField_GetUniqueValues_" data-uid="C1.PivotEngine.PivotField.GetUniqueValues*"></a>
<h4 id="C1_PivotEngine_PivotField_GetUniqueValues" data-uid="C1.PivotEngine.PivotField.GetUniqueValues">GetUniqueValues()</h4>
<div class="markdown level1 summary"><p>Gets a list of unique values found in the data source for this field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual List&lt;object&gt; GetUniqueValues()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function GetUniqueValues() As List(Of Object)</code></pre>
</div>
<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="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><p>A list of unique values found in the data source for this field.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_PivotEngine_PivotField_GetUniqueValues_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This list is updated whenever the <a class="xref" href="C1.PivotEngine.C1PivotEngine.html">C1PivotEngine</a> traverses
the data to build the output table. Calling this method before the engine
builds the output table returns an empty collection.</p>
</div>
</div>
