# C1.C1Preview.TagInputParams.CheckValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_TagInputParams_CheckValue_" data-uid="C1.C1Preview.TagInputParams.CheckValue*">CheckValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_TagInputParams_CheckValue_" data-uid="C1.C1Preview.TagInputParams.CheckValue*"></a>
<h4 id="C1_C1Preview_TagInputParams_CheckValue_System_Windows_Forms_Control_C1_C1Preview_Tag_System_String__" data-uid="C1.C1Preview.TagInputParams.CheckValue(System.Windows.Forms.Control,C1.C1Preview.Tag,System.String@)">CheckValue(Control, Tag, ref string)</h4>
<div class="markdown level1 summary"><p>Checks the value contained in the control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public abstract bool CheckValue(Control control, Tag tag, ref string errorMessage)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public MustOverride Function CheckValue(control As Control, tag As Tag, ByRef errorMessage As String) 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.windows.forms.control">Control</a></td>
      <td><span class="parametername">control</span></td>
      <td><p>The control used to enter the value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Tag.html">Tag</a></td>
      <td><span class="parametername">tag</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.Tag.html">Tag</a> to which the value is to be assigned.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">errorMessage</span></td>
      <td><p>The error message, assigned if the check fails.</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>True if the value is valid, false otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
