# C1.LiveLinq.Indexing.Search.IIndexScanner-2.FindBetween

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_LiveLinq_Indexing_Search_IIndexScanner_2_FindBetween_" data-uid="C1.LiveLinq.Indexing.Search.IIndexScanner`2.FindBetween*">FindBetween Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_LiveLinq_Indexing_Search_IIndexScanner_2_FindBetween_" data-uid="C1.LiveLinq.Indexing.Search.IIndexScanner`2.FindBetween*"></a>
<h4 id="C1_LiveLinq_Indexing_Search_IIndexScanner_2_FindBetween__1_System_Boolean__1_System_Boolean_System_Func__1_System_Boolean__C1_LiveLinq_Order_" data-uid="C1.LiveLinq.Indexing.Search.IIndexScanner`2.FindBetween(`1,System.Boolean,`1,System.Boolean,System.Func{`1,System.Boolean},C1.LiveLinq.Order)">FindBetween(TKey, bool, TKey, bool, Func&lt;TKey, bool&gt;, Order)</h4>
<div class="markdown level1 summary"><p>Finds items with key values in the interval between the specified values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IndexQuery&lt;T, TKey&gt; FindBetween(TKey min, bool minInclusive, TKey max, bool maxInclusive, Func&lt;TKey, bool&gt; keyPredicate, Order order)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function FindBetween(min As TKey, minInclusive As Boolean, max As TKey, maxInclusive As Boolean, keyPredicate As Func(Of TKey, Boolean), order As Order) As IndexQuery(Of T, TKey)</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">TKey</span></td>
      <td><span class="parametername">min</span></td>
      <td><p>Minimum key value to search for.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">minInclusive</span></td>
      <td><p>If <b>true</b>, the result includes items with the minimum key value.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">TKey</span></td>
      <td><span class="parametername">max</span></td>
      <td><p>Maximum key value to search for.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">maxInclusive</span></td>
      <td><p>If <b>true</b>, the result includes items with the maximum key value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;TKey, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;</td>
      <td><span class="parametername">keyPredicate</span></td>
      <td><p>An optional condition that found items must satisfy.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.LiveLinq.Order.html">Order</a></td>
      <td><span class="parametername">order</span></td>
      <td><p>Optionally specifies the order of the key values to sort the result (<a class="xref" href="C1.LiveLinq.Order.html">Order</a>.<b>Unordered</b> if sorting is not required).</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="C1.LiveLinq.Indexing.Search.IndexQuery-2.html">IndexQuery</a>&lt;T, TKey&gt;</td>
      <td><p>An object enumerating all items with key values within the specified limits.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
