# C1.DataCollection.C1DataCollectionEx.FilterAsync

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataCollection_C1DataCollectionEx_FilterAsync_" data-uid="C1.DataCollection.C1DataCollectionEx.FilterAsync*">FilterAsync Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataCollection_C1DataCollectionEx_FilterAsync_" data-uid="C1.DataCollection.C1DataCollectionEx.FilterAsync*"></a>
<h4 id="C1_DataCollection_C1DataCollectionEx_FilterAsync__1_C1_DataCollection_C1DataCollection___0__System_Linq_Expressions_Expression_System_Func___0_System_Object___C1_DataCollection_FilterOperation_System_Object_" data-uid="C1.DataCollection.C1DataCollectionEx.FilterAsync``1(C1.DataCollection.C1DataCollection{``0},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},C1.DataCollection.FilterOperation,System.Object)">FilterAsync&lt;T&gt;(C1DataCollection&lt;T&gt;, Expression&lt;Func&lt;T, object&gt;&gt;, FilterOperation, object)</h4>
<div class="markdown level1 summary"><p>Filters the data using specified filter parameters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Task FilterAsync&lt;T&gt;(this C1DataCollection&lt;T&gt; dataCollection, Expression&lt;Func&lt;T, object&gt;&gt; filterPath, FilterOperation filterOperation, object value) where T : class</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FilterAsync(Of T As Class)(dataCollection As C1DataCollection(Of T), filterPath As Expression(Of Func(Of T, Object)), filterOperation As FilterOperation, value As Object) As Task</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="C1.DataCollection.C1DataCollection-1.html">C1DataCollection</a>&lt;T&gt;</td>
      <td><span class="parametername">dataCollection</span></td>
      <td><p>The data collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;&gt;</td>
      <td><span class="parametername">filterPath</span></td>
      <td><p>The path of the data item to which the filter will be applied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.DataCollection.FilterOperation.html">FilterOperation</a></td>
      <td><span class="parametername">filterOperation</span></td>
      <td><p>The filter operation.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value used in the expression.</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></td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
