# C1.Win.C1Input.DataSourceException

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Input_DataSourceException" data-uid="C1.Win.C1Input.DataSourceException" class="text-break">DataSourceException Class
</h1>
  <div class="markdown level0 summary"><p>An exception thrown by C1Input when a control's Value property is set, but the new value is rejected by the data source,
setting the data field to that value is cancelled by the data source throwing an exception.</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="https://learn.microsoft.com/dotnet/api/system.applicationexception">ApplicationException</a></div>
    <div class="level3"><span class="xref">DataSourceException</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.interopservices._exception">_Exception</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Input.html">C1.Win.C1Input</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Win_C1Input_DataSourceException_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DataSourceException : ApplicationException, ISerializable, _Exception</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DataSourceException
    Inherits ApplicationException
    Implements ISerializable, _Exception</code></pre>
  </div>
  <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_Win_C1Input_DataSourceException_Sender" data-uid="C1.Win.C1Input.DataSourceException.Sender">
          <a class="xref" href="C1.Win.C1Input.DataSourceException.Sender.html#C1_Win_C1Input_DataSourceException_Sender">Sender</a>
        </td>
        <td class="markdown level1 summary"><p>Control that caused the exception.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_DataSourceException_Value" data-uid="C1.Win.C1Input.DataSourceException.Value">
          <a class="xref" href="C1.Win.C1Input.DataSourceException.Value.html#C1_Win_C1Input_DataSourceException_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Current value in the control that caused the exception.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
