# C1.JsonNet.JsonAttribute.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_JsonNet_JsonAttribute__ctor_" data-uid="C1.JsonNet.JsonAttribute.#ctor*">JsonAttribute Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_JsonNet_JsonAttribute__ctor_" data-uid="C1.JsonNet.JsonAttribute.#ctor*"></a>
<h4 id="C1_JsonNet_JsonAttribute__ctor_System_Int32_" data-uid="C1.JsonNet.JsonAttribute.#ctor(System.Int32)">JsonAttribute(int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.JsonNet.JsonAttribute.html">JsonAttribute</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public JsonAttribute(int order)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(order As Integer)</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.int32">int</a></td>
      <td><span class="parametername">order</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value indicating the order of serialization or deserialization.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_JsonNet_JsonAttribute__ctor_" data-uid="C1.JsonNet.JsonAttribute.#ctor*"></a>
<h4 id="C1_JsonNet_JsonAttribute__ctor_System_Boolean_" data-uid="C1.JsonNet.JsonAttribute.#ctor(System.Boolean)">JsonAttribute(bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.JsonNet.JsonAttribute.html">JsonAttribute</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public JsonAttribute(bool skipIfDefault)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(skipIfDefault 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.boolean">bool</a></td>
      <td><span class="parametername">skipIfDefault</span></td>
      <td><p>A flag indicating whether the default value should be serialized or deserialized.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_JsonNet_JsonAttribute__ctor_" data-uid="C1.JsonNet.JsonAttribute.#ctor*"></a>
<h4 id="C1_JsonNet_JsonAttribute__ctor_System_String_" data-uid="C1.JsonNet.JsonAttribute.#ctor(System.String)">JsonAttribute(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.JsonNet.JsonAttribute.html">JsonAttribute</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public JsonAttribute(string propertyName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(propertyName As String)</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">propertyName</span></td>
      <td><p>The specified name the property would be serialized.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_JsonNet_JsonAttribute__ctor_" data-uid="C1.JsonNet.JsonAttribute.#ctor*"></a>
<h4 id="C1_JsonNet_JsonAttribute__ctor_System_Boolean_System_Int32_System_String_" data-uid="C1.JsonNet.JsonAttribute.#ctor(System.Boolean,System.Int32,System.String)">JsonAttribute(bool, int, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.JsonNet.JsonAttribute.html">JsonAttribute</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public JsonAttribute(bool skipIfDefault, int order, string propertyName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(skipIfDefault As Boolean, order As Integer, propertyName As String)</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.boolean">bool</a></td>
      <td><span class="parametername">skipIfDefault</span></td>
      <td><p>A flag indicating whether the default value should be serialized or deserialized.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">order</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value indicating the order of serialization or deserialization.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">propertyName</span></td>
      <td><p>The specified name the property would be serialized.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
