# C1.JsonNet.CollectionItemTypeAttribute

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_JsonNet_CollectionItemTypeAttribute" data-uid="C1.JsonNet.CollectionItemTypeAttribute" class="text-break">CollectionItemTypeAttribute Class
</h1>
  <div class="markdown level0 summary"><p>Defines the attribute which specifies the item type of a collection.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.attribute">Attribute</a></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Serialization.C1ConverterAttribute.html">C1ConverterAttribute</a></div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.Serialization.C1CollectionItemConverterAttribute.html">C1CollectionItemConverterAttribute</a></div>
    <div class="level4"><span class="xref">CollectionItemTypeAttribute</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.interopservices._attribute">_Attribute</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.JsonNet.html">C1.JsonNet</a></h6>
  <h6><strong>Assembly</strong>: C1.Web.Mvc.dll</h6>
  <h5 id="C1_JsonNet_CollectionItemTypeAttribute_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property|AttributeTargets.Field)]
public sealed class CollectionItemTypeAttribute : C1CollectionItemConverterAttribute, _Attribute</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;AttributeUsage(AttributeTargets.ClassOrAttributeTargets.PropertyOrAttributeTargets.Field)&gt;
Public NotInheritable Class CollectionItemTypeAttribute
    Inherits C1CollectionItemConverterAttribute
    Implements _Attribute</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_JsonNet_CollectionItemTypeAttribute__ctor_System_Type_" data-uid="C1.JsonNet.CollectionItemTypeAttribute.#ctor(System.Type)">
          <a class="xref" href="C1.JsonNet.CollectionItemTypeAttribute.-ctor.html#C1_JsonNet_CollectionItemTypeAttribute__ctor_System_Type_">CollectionItemTypeAttribute(Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of <a class="xref" href="C1.JsonNet.CollectionItemTypeAttribute.html">CollectionItemTypeAttribute</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_CollectionItemTypeAttribute__ctor_System_Type_System_Object___" data-uid="C1.JsonNet.CollectionItemTypeAttribute.#ctor(System.Type,System.Object[])">
          <a class="xref" href="C1.JsonNet.CollectionItemTypeAttribute.-ctor.html#C1_JsonNet_CollectionItemTypeAttribute__ctor_System_Type_System_Object___">CollectionItemTypeAttribute(Type, params object[])</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of <a class="xref" href="C1.JsonNet.CollectionItemTypeAttribute.html">CollectionItemTypeAttribute</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_CollectionItemTypeAttribute__ctor_System_Type_System_Type_System_Object___" data-uid="C1.JsonNet.CollectionItemTypeAttribute.#ctor(System.Type,System.Type,System.Object[])">
          <a class="xref" href="C1.JsonNet.CollectionItemTypeAttribute.-ctor.html#C1_JsonNet_CollectionItemTypeAttribute__ctor_System_Type_System_Type_System_Object___">CollectionItemTypeAttribute(Type, Type, params object[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.JsonNet.CollectionItemTypeAttribute.html">CollectionItemTypeAttribute</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_JsonNet_CollectionItemTypeAttribute_CollectionItemType" data-uid="C1.JsonNet.CollectionItemTypeAttribute.CollectionItemType">
          <a class="xref" href="C1.JsonNet.CollectionItemTypeAttribute.CollectionItemType.html#C1_JsonNet_CollectionItemTypeAttribute_CollectionItemType">CollectionItemType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the type of the item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_CollectionItemTypeAttribute_ItemConverterParameters" data-uid="C1.JsonNet.CollectionItemTypeAttribute.ItemConverterParameters">
          <a class="xref" href="C1.JsonNet.CollectionItemTypeAttribute.ItemConverterParameters.html#C1_JsonNet_CollectionItemTypeAttribute_ItemConverterParameters">ItemConverterParameters</a>
        </td>
        <td class="markdown level1 summary"><p>Gets parameter list to use when constructing the JsonConverter described by <a class="xref" href="C1.JsonNet.CollectionItemTypeAttribute.ItemConverterType.html#C1_JsonNet_CollectionItemTypeAttribute_ItemConverterType">ItemConverterType</a>.
If null, the default constructor is used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_JsonNet_CollectionItemTypeAttribute_ItemConverterType" data-uid="C1.JsonNet.CollectionItemTypeAttribute.ItemConverterType">
          <a class="xref" href="C1.JsonNet.CollectionItemTypeAttribute.ItemConverterType.html#C1_JsonNet_CollectionItemTypeAttribute_ItemConverterType">ItemConverterType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the converter type of item.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
