# C1.Web.Mvc.Serialization.C1NameAttribute

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Serialization_C1NameAttribute" data-uid="C1.Web.Mvc.Serialization.C1NameAttribute" class="text-break">C1NameAttribute Class
</h1>
  <div class="markdown level0 summary"><p>Defines the base attribute for customizing the name.</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"><span class="xref">C1NameAttribute</span></div>
      <div class="level3"><a class="xref" href="C1.JsonNet.JsonAttribute.html">JsonAttribute</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Serialization.html">C1.Web.Mvc.Serialization</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_Serialization_C1NameAttribute_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public abstract class C1NameAttribute : Attribute</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;AttributeUsage(AttributeTargets.ClassOrAttributeTargets.StructOrAttributeTargets.PropertyOrAttributeTargets.Field, AllowMultiple:=False)&gt;
Public MustInherit Class C1NameAttribute
    Inherits 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_Web_Mvc_Serialization_C1NameAttribute__ctor_System_String_" data-uid="C1.Web.Mvc.Serialization.C1NameAttribute.#ctor(System.String)">
          <a class="xref" href="C1.Web.Mvc.Serialization.C1NameAttribute.-ctor.html#C1_Web_Mvc_Serialization_C1NameAttribute__ctor_System_String_">C1NameAttribute(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of <a class="xref" href="C1.Web.Mvc.Serialization.C1NameAttribute.html">C1NameAttribute</a>.</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_Web_Mvc_Serialization_C1NameAttribute_Name" data-uid="C1.Web.Mvc.Serialization.C1NameAttribute.Name">
          <a class="xref" href="C1.Web.Mvc.Serialization.C1NameAttribute.Name.html#C1_Web_Mvc_Serialization_C1NameAttribute_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the name.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
