# FarPoint.CalcEngine.FunctionExpression.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_CalcEngine_FunctionExpression__ctor_" data-uid="FarPoint.CalcEngine.FunctionExpression.#ctor*">FunctionExpression Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_CalcEngine_FunctionExpression__ctor_" data-uid="FarPoint.CalcEngine.FunctionExpression.#ctor*"></a>
<h4 id="FarPoint_CalcEngine_FunctionExpression__ctor_System_String_FarPoint_CalcEngine_Expression___" data-uid="FarPoint.CalcEngine.FunctionExpression.#ctor(System.String,FarPoint.CalcEngine.Expression[])">FunctionExpression(string, Expression[])</h4>
<div class="markdown level1 summary"><p>Creates a new expression representing a function applied to a list of parameters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FunctionExpression(string functionName, Expression[] args)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(functionName As String, args As Expression())</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">functionName</span></td>
      <td><p>Function name</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.CalcEngine.Expression.html">Expression</a>[]</td>
      <td><span class="parametername">args</span></td>
      <td><p>List of parameters</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.argumentnullexception">ArgumentNullException</a></td>
      <td><p>functionName or args is a null reference (Nothing in Visual Basic)</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_CalcEngine_FunctionExpression__ctor_" data-uid="FarPoint.CalcEngine.FunctionExpression.#ctor*"></a>
<h4 id="FarPoint_CalcEngine_FunctionExpression__ctor_FarPoint_CalcEngine_FunctionInfo_FarPoint_CalcEngine_Expression___" data-uid="FarPoint.CalcEngine.FunctionExpression.#ctor(FarPoint.CalcEngine.FunctionInfo,FarPoint.CalcEngine.Expression[])">FunctionExpression(FunctionInfo, Expression[])</h4>
<div class="markdown level1 summary"><p>Creates a new expression representing a function applied to a list of parameters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FunctionExpression(FunctionInfo functionInfo, Expression[] args)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(functionInfo As FunctionInfo, args As Expression())</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="FarPoint.CalcEngine.FunctionInfo.html">FunctionInfo</a></td>
      <td><span class="parametername">functionInfo</span></td>
      <td><p>Function</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.CalcEngine.Expression.html">Expression</a>[]</td>
      <td><span class="parametername">args</span></td>
      <td><p>List of parameters</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.argumentnullexception">ArgumentNullException</a></td>
      <td><p>functionInfo or args is a null reference (Nothing in Visual Basic)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>functionInfo does not accept the number of parameters found in args</p>
</td>
    </tr>
  </tbody>
</table>
</div>
