# C1.DataConnector.C1KeyNotFoundException

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_DataConnector_C1KeyNotFoundException" data-uid="C1.DataConnector.C1KeyNotFoundException" class="text-break">C1KeyNotFoundException Class
</h1>
  <div class="markdown level0 summary"><p>This class provides a standard exception for scenarios where a specific key is expected to be present, but is missing or invalid.
It provides a clear indication of issues related to key-based operations in the context of URL parameters or similar scenarios.</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.exception">Exception</a></div>
    <div class="level2"><a class="xref" href="C1.DataConnector.C1DataConnectorException.html">C1DataConnectorException</a></div>
    <div class="level3"><span class="xref">C1KeyNotFoundException</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.DataConnector.html">C1.DataConnector</a></h6>
  <h6><strong>Assembly</strong>: C1.DataConnector.dll</h6>
  <h5 id="C1_DataConnector_C1KeyNotFoundException_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1KeyNotFoundException : C1DataConnectorException, ISerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1KeyNotFoundException
    Inherits C1DataConnectorException
    Implements ISerializable</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_DataConnector_C1KeyNotFoundException__ctor" data-uid="C1.DataConnector.C1KeyNotFoundException.#ctor">
          <a class="xref" href="C1.DataConnector.C1KeyNotFoundException.-ctor.html#C1_DataConnector_C1KeyNotFoundException__ctor">C1KeyNotFoundException()</a>
        </td>
        <td class="markdown level1 summary"><p>Inits a new instance of <a class="xref" href="C1.DataConnector.C1KeyNotFoundException.html">C1KeyNotFoundException</a></p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_C1KeyNotFoundException__ctor_System_String_" data-uid="C1.DataConnector.C1KeyNotFoundException.#ctor(System.String)">
          <a class="xref" href="C1.DataConnector.C1KeyNotFoundException.-ctor.html#C1_DataConnector_C1KeyNotFoundException__ctor_System_String_">C1KeyNotFoundException(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Inits a new instance of <a class="xref" href="C1.DataConnector.C1KeyNotFoundException.html">C1KeyNotFoundException</a></p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_C1KeyNotFoundException__ctor_System_String_System_Exception_" data-uid="C1.DataConnector.C1KeyNotFoundException.#ctor(System.String,System.Exception)">
          <a class="xref" href="C1.DataConnector.C1KeyNotFoundException.-ctor.html#C1_DataConnector_C1KeyNotFoundException__ctor_System_String_System_Exception_">C1KeyNotFoundException(string, Exception)</a>
        </td>
        <td class="markdown level1 summary"><p>Inits a new instance of <a class="xref" href="C1.DataConnector.C1KeyNotFoundException.html">C1KeyNotFoundException</a></p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_C1KeyNotFoundException__ctor_System_String_System_String___" data-uid="C1.DataConnector.C1KeyNotFoundException.#ctor(System.String,System.String[])">
          <a class="xref" href="C1.DataConnector.C1KeyNotFoundException.-ctor.html#C1_DataConnector_C1KeyNotFoundException__ctor_System_String_System_String___">C1KeyNotFoundException(string, params string[])</a>
        </td>
        <td class="markdown level1 summary"><p>Inits a new instance of <a class="xref" href="C1.DataConnector.C1KeyNotFoundException.html">C1KeyNotFoundException</a></p>
</td>
      </tr>
    </tbody>
  </table>

</div>
