# GrapeCity.ActiveReports.PageReportModel.NameValidator

## Content

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



  <h1 id="GrapeCity_ActiveReports_PageReportModel_NameValidator" data-uid="GrapeCity.ActiveReports.PageReportModel.NameValidator" class="text-break">NameValidator Class
</h1>
  <div class="markdown level0 summary"><p>Represents a validator to check names contained in a report.</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"><span class="xref">NameValidator</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.html">GrapeCity.ActiveReports.PageReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_NameValidator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class NameValidator</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_NameValidator_examples"><strong>Examples</strong></h5>
  <pre><code class="lang-csharp">var validator = new NameValidator();
bool isValid = validator.ValidateName("ReportItemName", NameType.Control);</code></pre>

  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_NameValidator_ValidateName_System_String_GrapeCity_ActiveReports_PageReportModel_NameType_" data-uid="GrapeCity.ActiveReports.PageReportModel.NameValidator.ValidateName(System.String,GrapeCity.ActiveReports.PageReportModel.NameType)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.NameValidator.ValidateName.html#GrapeCity_ActiveReports_PageReportModel_NameValidator_ValidateName_System_String_GrapeCity_ActiveReports_PageReportModel_NameType_">ValidateName(string, NameType)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks report item names to ensure that they are unique, not empty or null, and do not contain invalid characters.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>

</div>
