# GrapeCity.CalcEngine.Function.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_CalcEngine_Function__ctor_" data-uid="GrapeCity.CalcEngine.Function.#ctor*">Function Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_CalcEngine_Function__ctor_" data-uid="GrapeCity.CalcEngine.Function.#ctor*"></a>
<h4 id="GrapeCity_CalcEngine_Function__ctor_System_String_System_Int32_System_Int32_GrapeCity_CalcEngine_FunctionAttributes_" data-uid="GrapeCity.CalcEngine.Function.#ctor(System.String,System.Int32,System.Int32,GrapeCity.CalcEngine.FunctionAttributes)">Function(string, int, int, FunctionAttributes)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.CalcEngine.Function.html">Function</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected Function(string functionName, int minArgs, int maxArgs, FunctionAttributes attributes)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(functionName As String, minArgs As Integer, maxArgs As Integer, attributes As FunctionAttributes)</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>A string value represents the function name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">minArgs</span></td>
      <td><p>An integer values indicates the minimum argument count.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">maxArgs</span></td>
      <td><p>An integer values indicates the maximum argument count.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.FunctionAttributes.html">FunctionAttributes</a></td>
      <td><span class="parametername">attributes</span></td>
      <td><p>A <a class="xref" href="GrapeCity.CalcEngine.FunctionAttributes.html">FunctionAttributes</a> value indicates attributes of the function.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
