# C1.Web.Api.Document.Models.ExportOptionDescription.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Api_Document_Models_ExportOptionDescription__ctor_" data-uid="C1.Web.Api.Document.Models.ExportOptionDescription.#ctor*">ExportOptionDescription Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Api_Document_Models_ExportOptionDescription__ctor_" data-uid="C1.Web.Api.Document.Models.ExportOptionDescription.#ctor*"></a>
<h4 id="C1_Web_Api_Document_Models_ExportOptionDescription__ctor_System_String_System_String_System_Object_System_String_System_Collections_Generic_IEnumerable_System_String__System_Boolean_" data-uid="C1.Web.Api.Document.Models.ExportOptionDescription.#ctor(System.String,System.String,System.Object,System.String,System.Collections.Generic.IEnumerable{System.String},System.Boolean)">ExportOptionDescription(string, string, object, string, IEnumerable&lt;string&gt;, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Web.Api.Document.Models.ExportOptionDescription.html">ExportOptionDescription</a> object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ExportOptionDescription(string name, string type = &quot;string&quot;, object defaultValue = null, string group = &quot;&quot;, IEnumerable&lt;string&gt; allowedValues = null, bool nullable = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, Optional type As String = &quot;string&quot;, Optional defaultValue As Object = Nothing, Optional group As String = &quot;&quot;, Optional allowedValues As IEnumerable(Of String) = Nothing, Optional nullable As Boolean = False)</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 option.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The data type of the option.</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 defualt value of the option.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">group</span></td>
      <td><p>The group which the option belongs to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
      <td><span class="parametername">allowedValues</span></td>
      <td><p>Thee supported values of the option.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">nullable</span></td>
      <td><p>Whether the value of the option can be null.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
