# GrapeCity.ActiveReports.Blazor.Viewer.ReportViewer.Search

## Content

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



<h1 id="GrapeCity_ActiveReports_Blazor_Viewer_ReportViewer_Search_" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.ReportViewer.Search*">Search Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Blazor_Viewer_ReportViewer_Search_" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.ReportViewer.Search*"></a>
<h4 id="GrapeCity_ActiveReports_Blazor_Viewer_ReportViewer_Search_System_String_GrapeCity_ActiveReports_Blazor_Viewer_SearchOptions_System_Action_System_Collections_Generic_List_GrapeCity_ActiveReports_Blazor_Viewer_SearchResult___" data-uid="GrapeCity.ActiveReports.Blazor.Viewer.ReportViewer.Search(System.String,GrapeCity.ActiveReports.Blazor.Viewer.SearchOptions,System.Action{System.Collections.Generic.List{GrapeCity.ActiveReports.Blazor.Viewer.SearchResult}})">Search(string, SearchOptions, Action&lt;List&lt;SearchResult&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Performs a search of a specific term with specific search options (match case, whole word) and invokes the callback with the search result passed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Task Search(string searchTerm, SearchOptions searchOptions = null, Action&lt;List&lt;SearchResult&gt;&gt; callback = null)</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.string">string</a></td>
      <td><span class="parametername">searchTerm</span></td>
      <td><p>String to find.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Blazor.Viewer.SearchOptions.html">SearchOptions</a></td>
      <td><span class="parametername">searchOptions</span></td>
      <td><p>The object optionally defines the search options.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.action-1">Action</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Blazor.Viewer.SearchResult.html">SearchResult</a>&gt;&gt;</td>
      <td><span class="parametername">callback</span></td>
      <td><p>The function to call after performing search.</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.threading.tasks.task">Task</a></td>
      <td><p>A task that represents the asynchronous operation of performing the search.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
