# C1.JsonNet.JsonResolver.CanResolve

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_JsonNet_JsonResolver_CanResolve_" data-uid="C1.JsonNet.JsonResolver.CanResolve*">CanResolve Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_JsonNet_JsonResolver_CanResolve_" data-uid="C1.JsonNet.JsonResolver.CanResolve*"></a>
<h4 id="C1_JsonNet_JsonResolver_CanResolve_System_String_System_Object_System_Type_C1_Web_Mvc_Serialization_IContext_" data-uid="C1.JsonNet.JsonResolver.CanResolve(System.String,System.Object,System.Type,C1.Web.Mvc.Serialization.IContext)">CanResolve(string, object, Type, IContext)</h4>
<div class="markdown level1 summary"><p>Determines whether the object can use this resolver.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override bool CanResolve(string name, object value, Type type, IContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function CanResolve(name As String, value As Object, type As Type, context As IContext) 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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The name of the object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The object value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The object type.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Web.Mvc.Serialization.IContext.html">IContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The context.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value indicates whether to be resovled.
If true, it means the object can be resolved.
Otherwise, the resolver cannot support this object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Web.Mvc.Serialization.BaseResolver.CanResolve.html#C1_Web_Mvc_Serialization_BaseResolver_CanResolve_System_String_System_Object_System_Type_C1_Web_Mvc_Serialization_IContext_">BaseResolver.CanResolve(string, object, Type, IContext)</a></div>


<a id="C1_JsonNet_JsonResolver_CanResolve_" data-uid="C1.JsonNet.JsonResolver.CanResolve*"></a>
<h4 id="C1_JsonNet_JsonResolver_CanResolve_System_String_System_Object_System_Type_" data-uid="C1.JsonNet.JsonResolver.CanResolve(System.String,System.Object,System.Type)">CanResolve(string, object, Type)</h4>
<div class="markdown level1 summary"><p>Gets whether the specified object can be serialized or deserialized.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual bool CanResolve(string name, object value, Type type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function CanResolve(name As String, value As Object, type As Type) 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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The property name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value of the object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type of the object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value indicates whether to be resovled.
If true, it means the object can be serialized or deserialized.
The object doesn't support serialization or deserialization.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
