# C1.Web.Mvc.ModelBinderBase

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_ModelBinderBase" data-uid="C1.Web.Mvc.ModelBinderBase" class="text-break">ModelBinderBase Class
</h1>
  <div class="markdown level0 summary"><p>Defines a base class of model binder for customizing.</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"><span class="xref">ModelBinderBase</span></div>
      <div class="level2"><a class="xref" href="C1.Web.Mvc.C1JsonRequestModelBinder.html">C1JsonRequestModelBinder</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.imodelbinder">IModelBinder</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.html">C1.Web.Mvc</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_ModelBinderBase_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class ModelBinderBase : IModelBinder</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class ModelBinderBase
    Implements IModelBinder</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_ModelBinderBase__ctor" data-uid="C1.Web.Mvc.ModelBinderBase.#ctor">
          <a class="xref" href="C1.Web.Mvc.ModelBinderBase.-ctor.html#C1_Web_Mvc_ModelBinderBase__ctor">ModelBinderBase()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</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_ModelBinderBase_BindModelAsync_Microsoft_AspNetCore_Mvc_ModelBinding_ModelBindingContext_" data-uid="C1.Web.Mvc.ModelBinderBase.BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext)">
          <a class="xref" href="C1.Web.Mvc.ModelBinderBase.BindModelAsync.html#C1_Web_Mvc_ModelBinderBase_BindModelAsync_Microsoft_AspNetCore_Mvc_ModelBinding_ModelBindingContext_">BindModelAsync(ModelBindingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Attempts to bind a model.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_ModelBinderBase_DeserializeModel_System_String_System_Type_" data-uid="C1.Web.Mvc.ModelBinderBase.DeserializeModel(System.String,System.Type)">
          <a class="xref" href="C1.Web.Mvc.ModelBinderBase.DeserializeModel.html#C1_Web_Mvc_ModelBinderBase_DeserializeModel_System_String_System_Type_">DeserializeModel(string, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Deserializes the model.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_ModelBinderBase_GetRequestContent_Microsoft_AspNetCore_Http_HttpRequest_" data-uid="C1.Web.Mvc.ModelBinderBase.GetRequestContent(Microsoft.AspNetCore.Http.HttpRequest)">
          <a class="xref" href="C1.Web.Mvc.ModelBinderBase.GetRequestContent.html#C1_Web_Mvc_ModelBinderBase_GetRequestContent_Microsoft_AspNetCore_Http_HttpRequest_">GetRequestContent(HttpRequest)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the request content which is used for deserializing.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
