# GrapeCity.ActiveReports.Rendering.RenderingTree.ExpressionContextBuilder.Build

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_RenderingTree_ExpressionContextBuilder_Build_" data-uid="GrapeCity.ActiveReports.Rendering.RenderingTree.ExpressionContextBuilder.Build*">Build Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_RenderingTree_ExpressionContextBuilder_Build_" data-uid="GrapeCity.ActiveReports.Rendering.RenderingTree.ExpressionContextBuilder.Build*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_RenderingTree_ExpressionContextBuilder_Build_System_String_GrapeCity_ActiveReports_Rendering_EngineDataProcessor_DataExecutionContext_GrapeCity_Enterprise_Data_DataEngine_DataParameter___System_Collections_Generic_IReadOnlyDictionary_System_String_System_Object__" data-uid="GrapeCity.ActiveReports.Rendering.RenderingTree.ExpressionContextBuilder.Build(System.String,GrapeCity.ActiveReports.Rendering.EngineDataProcessor.DataExecutionContext,GrapeCity.Enterprise.Data.DataEngine.DataParameter[],System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object})">Build(string, DataExecutionContext, DataParameter[], IReadOnlyDictionary&lt;string, object&gt;)</h4>
<div class="markdown level1 summary"><p>Creates a simplified evaluation context sufficient to populate the data tree.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IExpressionContext Build(string reportName, EngineDataProcessor.DataExecutionContext context, DataParameter[] dataParameters, IReadOnlyDictionary&lt;string, object&gt; customContext = null)</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">reportName</span></td>
      <td><p>The name of the report.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Rendering.EngineDataProcessor.html">EngineDataProcessor</a>.<a class="xref" href="GrapeCity.ActiveReports.Rendering.EngineDataProcessor.DataExecutionContext.html">DataExecutionContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The data execution context.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">DataParameter</span>[]</td>
      <td><span class="parametername">dataParameters</span></td>
      <td><p>The data parameters.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlydictionary-2">IReadOnlyDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">customContext</span></td>
      <td><p>An optional dictionary of custom context objects.</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><span class="xref">IExpressionContext</span></td>
      <td><p>An <span class="xref">GrapeCity.Enterprise.Data.DataEngine.ExpressionEvaluation.IExpressionContext</span> instance.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Rendering_RenderingTree_ExpressionContextBuilder_Build_" data-uid="GrapeCity.ActiveReports.Rendering.RenderingTree.ExpressionContextBuilder.Build*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_RenderingTree_ExpressionContextBuilder_Build_GrapeCity_ActiveReports_PageReportModel_Report_System_Lazy_GrapeCity_ActiveReports_Expressions_Remote_GlobalDataTypes_Parameters__GrapeCity_ActiveReports_ResourceLocator_GrapeCity_ActiveReports_Extensibility_Rendering_IReportInformationService_System_Collections_Generic_IReadOnlyDictionary_System_String_System_Func_GrapeCity_ActiveReports_Rendering_CustomContextArgs_System_Object___" data-uid="GrapeCity.ActiveReports.Rendering.RenderingTree.ExpressionContextBuilder.Build(GrapeCity.ActiveReports.PageReportModel.Report,System.Lazy{GrapeCity.ActiveReports.Expressions.Remote.GlobalDataTypes.Parameters},GrapeCity.ActiveReports.ResourceLocator,GrapeCity.ActiveReports.Extensibility.Rendering.IReportInformationService,System.Collections.Generic.IReadOnlyDictionary{System.String,System.Func{GrapeCity.ActiveReports.Rendering.CustomContextArgs,System.Object}})">Build(Report, Lazy&lt;Parameters&gt;, ResourceLocator, IReportInformationService, IReadOnlyDictionary&lt;string, Func&lt;CustomContextArgs, object&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Creates an evaluation context for the specified report definition.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IEvaluationContext Build(Report reportDef, Lazy&lt;Parameters&gt; parameters, ResourceLocator resourceLocator, IReportInformationService ris, IReadOnlyDictionary&lt;string, Func&lt;CustomContextArgs, object&gt;&gt; customContext = null)</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="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.Report.html">Report</a></td>
      <td><span class="parametername">reportDef</span></td>
      <td><p>The report definition.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.lazy-1">Lazy</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Expressions.Remote.GlobalDataTypes.Parameters.html">Parameters</a>&gt;</td>
      <td><span class="parametername">parameters</span></td>
      <td><p>The lazy-loaded parameters.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.ResourceLocator.html">ResourceLocator</a></td>
      <td><span class="parametername">resourceLocator</span></td>
      <td><p>The resource locator.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.IReportInformationService.html">IReportInformationService</a></td>
      <td><span class="parametername">ris</span></td>
      <td><p>The report information service.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlydictionary-2">IReadOnlyDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Rendering.CustomContextArgs.html">CustomContextArgs</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;&gt;</td>
      <td><span class="parametername">customContext</span></td>
      <td><p>An optional dictionary of custom context functions.</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="GrapeCity.ActiveReports.Core.Rendering.IEvaluationContext.html">IEvaluationContext</a></td>
      <td><p>An <a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.IEvaluationContext.html">IEvaluationContext</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
