# GrapeCity.ActiveReports.Rendering.Tools.ValidatorBase-1.Validate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Rendering_Tools_ValidatorBase_1_Validate_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.ValidatorBase`1.Validate*">Validate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_Tools_ValidatorBase_1_Validate_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.ValidatorBase`1.Validate*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Tools_ValidatorBase_1_Validate__0_" data-uid="GrapeCity.ActiveReports.Rendering.Tools.ValidatorBase`1.Validate(`0)">Validate(T)</h4>
<div class="markdown level1 summary"><p>Runs validation</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IEnumerable&lt;Tuple&lt;bool, string&gt;&gt; Validate(T obj)</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><span class="xref">T</span></td>
      <td><span class="parametername">obj</span></td>
      <td><p>Object to validate</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.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.tuple-2">Tuple</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;&gt;</td>
      <td><p>Validation result as <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.tuple">Tuple&lt;bool, string&gt;</a> where
Item1 - is a boolean that says whether the validation succeeded,
Item2 - a collection of error messages about any validation failures</p>
</td>
    </tr>
  </tbody>
</table>
</div>
