# C1.PivotEngine.C1PivotEngine.GetRawData

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_PivotEngine_C1PivotEngine_GetRawData_" data-uid="C1.PivotEngine.C1PivotEngine.GetRawData*">GetRawData Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_PivotEngine_C1PivotEngine_GetRawData_" data-uid="C1.PivotEngine.C1PivotEngine.GetRawData*"></a>
<h4 id="C1_PivotEngine_C1PivotEngine_GetRawData_System_String_System_String_System_Threading_CancellationToken_" data-uid="C1.PivotEngine.C1PivotEngine.GetRawData(System.String,System.String,System.Threading.CancellationToken)">GetRawData(string, string, CancellationToken)</h4>
<div class="markdown level1 summary"><p>Makes the entire raw source data collection accessible to the server's clients.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Task&lt;IList&gt; GetRawData(string workspace, string table, CancellationToken cancelToken)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetRawData(workspace As String, table As String, cancelToken As CancellationToken) As Task(Of IList)</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.string">string</a></td>
      <td><span class="parametername">workspace</span></td>
      <td><p>Path in the server's file system where DataEngine data is saved in files.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">table</span></td>
      <td><p>The name of a DataEngine table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></td>
      <td><span class="parametername">cancelToken</span></td>
      <td><p>Enables task cancellation.</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="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a>&gt;</td>
      <td><p>List of source data objects.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_PivotEngine_C1PivotEngine_GetRawData_System_String_System_String_System_Threading_CancellationToken__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>It is recommended to use paging providing source data to the clients, because a DataEngine table can have a very large number of rows.</p>
</div>


<a id="C1_PivotEngine_C1PivotEngine_GetRawData_" data-uid="C1.PivotEngine.C1PivotEngine.GetRawData*"></a>
<h4 id="C1_PivotEngine_C1PivotEngine_GetRawData_System_Collections_IEnumerable_System_Threading_CancellationToken_" data-uid="C1.PivotEngine.C1PivotEngine.GetRawData(System.Collections.IEnumerable,System.Threading.CancellationToken)">GetRawData(IEnumerable, CancellationToken)</h4>
<div class="markdown level1 summary"><p>Makes the entire raw source data collection accessible to the server's clients.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Task&lt;IList&gt; GetRawData(IEnumerable dataSource, CancellationToken cancelToken)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetRawData(dataSource As IEnumerable, cancelToken As CancellationToken) As Task(Of IList)</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.ienumerable">IEnumerable</a></td>
      <td><span class="parametername">dataSource</span></td>
      <td><p>Data source collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></td>
      <td><span class="parametername">cancelToken</span></td>
      <td><p>Enables task cancellation.</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="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a>&gt;</td>
      <td><p>List of source data objects.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_PivotEngine_C1PivotEngine_GetRawData_System_Collections_IEnumerable_System_Threading_CancellationToken__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method overload simply converts the source collection (which is an IEnumerable) to an IList.</p>
</div>
</div>
