# GrapeCity.Documents.Excel.AsyncCustomFunction.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_AsyncCustomFunction__ctor_" data-uid="GrapeCity.Documents.Excel.AsyncCustomFunction.#ctor*">AsyncCustomFunction Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_AsyncCustomFunction__ctor_" data-uid="GrapeCity.Documents.Excel.AsyncCustomFunction.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_AsyncCustomFunction__ctor_System_String_GrapeCity_Documents_Excel_FunctionValueType_" data-uid="GrapeCity.Documents.Excel.AsyncCustomFunction.#ctor(System.String,GrapeCity.Documents.Excel.FunctionValueType)">AsyncCustomFunction(string, FunctionValueType)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a custom function.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected AsyncCustomFunction(string name, FunctionValueType result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(name As String, result As FunctionValueType)</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">name</span></td>
      <td><p>The name of the custom function.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>Specifies the return type for the custom function.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_AsyncCustomFunction__ctor_" data-uid="GrapeCity.Documents.Excel.AsyncCustomFunction.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_AsyncCustomFunction__ctor_System_String_GrapeCity_Documents_Excel_FunctionValueType_GrapeCity_Documents_Excel_Parameter___" data-uid="GrapeCity.Documents.Excel.AsyncCustomFunction.#ctor(System.String,GrapeCity.Documents.Excel.FunctionValueType,GrapeCity.Documents.Excel.Parameter[])">AsyncCustomFunction(string, FunctionValueType, Parameter[])</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a custom function.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected AsyncCustomFunction(string name, FunctionValueType result, Parameter[] parameters)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(name As String, result As FunctionValueType, parameters As Parameter())</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">name</span></td>
      <td><p>The name of the custom function.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>Specifies the return type for the custom function.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.Parameter.html">Parameter</a>[]</td>
      <td><span class="parametername">parameters</span></td>
      <td><p>Specifies the parmeters for the custom function.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_AsyncCustomFunction__ctor_" data-uid="GrapeCity.Documents.Excel.AsyncCustomFunction.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_AsyncCustomFunction__ctor_System_String_System_String_GrapeCity_Documents_Excel_FunctionValueType_GrapeCity_Documents_Excel_Parameter___" data-uid="GrapeCity.Documents.Excel.AsyncCustomFunction.#ctor(System.String,System.String,GrapeCity.Documents.Excel.FunctionValueType,GrapeCity.Documents.Excel.Parameter[])">AsyncCustomFunction(string, string, FunctionValueType, Parameter[])</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a custom function.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected AsyncCustomFunction(string name, string description, FunctionValueType result, Parameter[] parameters)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(name As String, description As String, result As FunctionValueType, parameters As Parameter())</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">name</span></td>
      <td><p>The name of the custom function.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">description</span></td>
      <td><p>The description of the custom function.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>Specifies the return type for the custom function.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.Parameter.html">Parameter</a>[]</td>
      <td><span class="parametername">parameters</span></td>
      <td><p>Specifies the parmeters for the custom function.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
