# GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Core_Rendering_Data_ReportDataSnapshot__ctor_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot.#ctor*">ReportDataSnapshot Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rendering_Data_ReportDataSnapshot__ctor_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rendering_Data_ReportDataSnapshot__ctor_GrapeCity_Enterprise_Data_DataEngine_Def_Report_GrapeCity_Enterprise_Data_DataEngine_DataTree_GrapeCity_Enterprise_Data_DataEngine_Aggregates_Aggregate__Snapshot_GrapeCity_Enterprise_Data_DataEngine_DataTree_System_Object__Snapshot_System_Collections_Generic_IList_System_Action__System_Int32_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot.#ctor(GrapeCity.Enterprise.Data.DataEngine.Def.Report,GrapeCity.Enterprise.Data.DataEngine.DataTree{GrapeCity.Enterprise.Data.DataEngine.Aggregates.Aggregate}.Snapshot,GrapeCity.Enterprise.Data.DataEngine.DataTree{System.Object}.Snapshot,System.Collections.Generic.IList{System.Action},System.Int32)">ReportDataSnapshot(Report, Snapshot, Snapshot, IList&lt;Action&gt;, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot.html">ReportDataSnapshot</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ReportDataSnapshot(Def.Report reportDataDefinition, DataTree&lt;Aggregate&gt;.Snapshot aggregateTree, DataTree&lt;object&gt;.Snapshot resultTree, IList&lt;Action&gt; finalizers = null, int version = 1)</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><span class="xref">Def</span>.<span class="xref">Report</span></td>
      <td><span class="parametername">reportDataDefinition</span></td>
      <td><p>The data definition.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">DataTree</span>&lt;<span class="xref">Aggregate</span>&gt;.<span class="xref">Snapshot</span></td>
      <td><span class="parametername">aggregateTree</span></td>
      <td><p>The tree of aggregates.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">DataTree</span>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;.<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">Snapshot</a></td>
      <td><span class="parametername">resultTree</span></td>
      <td><p>The final data tree.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action">Action</a>&gt;</td>
      <td><span class="parametername">finalizers</span></td>
      <td><p>The list of callback methods to be called to release data sources.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">version</span></td>
      <td><p>The snapshot format version.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Thrown if <code class="paramref">version</code> is less than or equal to 0.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
