# GrapeCity.Documents.Excel.Parameter.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Parameter__ctor_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor*">Parameter Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Parameter__ctor_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_Parameter__ctor_GrapeCity_Documents_Excel_FunctionValueType_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor(GrapeCity.Documents.Excel.FunctionValueType)">Parameter(FunctionValueType)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Parameter(FunctionValueType valueType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(valueType 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="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">valueType</span></td>
      <td><p>The value type of the parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_Parameter__ctor_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_Parameter__ctor_GrapeCity_Documents_Excel_FunctionValueType_System_Boolean_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor(GrapeCity.Documents.Excel.FunctionValueType,System.Boolean)">Parameter(FunctionValueType, bool)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Parameter(FunctionValueType valueType, bool acceptReference)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(valueType As FunctionValueType, acceptReference As Boolean)</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="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">valueType</span></td>
      <td><p>The value type of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">acceptReference</span></td>
      <td><p>If this parameter can accept reference.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_Parameter__ctor_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_Parameter__ctor_GrapeCity_Documents_Excel_FunctionValueType_System_Boolean_System_Boolean_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor(GrapeCity.Documents.Excel.FunctionValueType,System.Boolean,System.Boolean)">Parameter(FunctionValueType, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Parameter(FunctionValueType valueType, bool acceptReference, bool acceptCustomObjects)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(valueType As FunctionValueType, acceptReference As Boolean, acceptCustomObjects As Boolean)</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="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">valueType</span></td>
      <td><p>The value type of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">acceptReference</span></td>
      <td><p>If this parameter can accept reference.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">acceptCustomObjects</span></td>
      <td><p>Accepts custom objects if value type is <a class="xref" href="GrapeCity.Documents.Excel.FunctionValueType.html#GrapeCity_Documents_Excel_FunctionValueType_Object">Object</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_Parameter__ctor_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_Parameter__ctor_GrapeCity_Documents_Excel_FunctionValueType_System_Object_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor(GrapeCity.Documents.Excel.FunctionValueType,System.Object)">Parameter(FunctionValueType, object)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Parameter(FunctionValueType valueType, object defaultValue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(valueType As FunctionValueType, defaultValue As Object)</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="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">valueType</span></td>
      <td><p>The value type of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">defaultValue</span></td>
      <td><p>The default value of the parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_Parameter__ctor_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_Parameter__ctor_GrapeCity_Documents_Excel_FunctionValueType_System_Object_System_Boolean_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor(GrapeCity.Documents.Excel.FunctionValueType,System.Object,System.Boolean)">Parameter(FunctionValueType, object, bool)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Parameter(FunctionValueType valueType, object defaultValue, bool acceptReference)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(valueType As FunctionValueType, defaultValue As Object, acceptReference As Boolean)</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="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">valueType</span></td>
      <td><p>The value type of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">defaultValue</span></td>
      <td><p>The default value of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">acceptReference</span></td>
      <td><p>If this parameter can accept reference.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_Parameter__ctor_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_Parameter__ctor_System_String_System_String_GrapeCity_Documents_Excel_FunctionValueType_System_Object_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor(System.String,System.String,GrapeCity.Documents.Excel.FunctionValueType,System.Object)">Parameter(string, string, FunctionValueType, object)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Parameter(string name, string description, FunctionValueType valueType, object defaultValue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, description As String, valueType As FunctionValueType, defaultValue As Object)</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 parameter.</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 parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">valueType</span></td>
      <td><p>The value type of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">defaultValue</span></td>
      <td><p>The default value of the parameter.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_Parameter__ctor_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_Parameter__ctor_System_String_System_String_GrapeCity_Documents_Excel_FunctionValueType_System_Object_System_Boolean_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor(System.String,System.String,GrapeCity.Documents.Excel.FunctionValueType,System.Object,System.Boolean)">Parameter(string, string, FunctionValueType, object, bool)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Parameter(string name, string description, FunctionValueType valueType, object defaultValue, bool acceptReference)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, description As String, valueType As FunctionValueType, defaultValue As Object, acceptReference As Boolean)</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 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 parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">valueType</span></td>
      <td><p>The value type of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">defaultValue</span></td>
      <td><p>The default value of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">acceptReference</span></td>
      <td><p>If this parameter can accept reference.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_Parameter__ctor_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_Parameter__ctor_System_String_System_String_GrapeCity_Documents_Excel_FunctionValueType_System_Object_System_Boolean_System_Boolean_" data-uid="GrapeCity.Documents.Excel.Parameter.#ctor(System.String,System.String,GrapeCity.Documents.Excel.FunctionValueType,System.Object,System.Boolean,System.Boolean)">Parameter(string, string, FunctionValueType, object, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes an instance of a parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Parameter(string name, string description, FunctionValueType valueType, object defaultValue, bool acceptReference, bool acceptCustomObjects)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, description As String, valueType As FunctionValueType, defaultValue As Object, acceptReference As Boolean, acceptCustomObjects As Boolean)</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 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 parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.FunctionValueType.html">FunctionValueType</a></td>
      <td><span class="parametername">valueType</span></td>
      <td><p>The value type of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">defaultValue</span></td>
      <td><p>The default value of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">acceptReference</span></td>
      <td><p>If this parameter can accept reference.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">acceptCustomObjects</span></td>
      <td><p>Accepts custom objects if value type is <a class="xref" href="GrapeCity.Documents.Excel.FunctionValueType.html#GrapeCity_Documents_Excel_FunctionValueType_Object">Object</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
