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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_LiveLinq_Indexing_Search_IIndexScanner_2_Keys_" data-uid="C1.LiveLinq.Indexing.Search.IIndexScanner`2.Keys*">Keys Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_LiveLinq_Indexing_Search_IIndexScanner_2_Keys_" data-uid="C1.LiveLinq.Indexing.Search.IIndexScanner`2.Keys*"></a>
<h4 id="C1_LiveLinq_Indexing_Search_IIndexScanner_2_Keys_C1_LiveLinq_Order_" data-uid="C1.LiveLinq.Indexing.Search.IIndexScanner`2.Keys(C1.LiveLinq.Order)">Keys(Order)</h4>
<div class="markdown level1 summary"><p>Gets distinct key values in all items of this collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IEnumerable&lt;TKey&gt; Keys(Order order)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Keys(order As Order) As IEnumerable(Of 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><a class="xref" href="C1.LiveLinq.Order.html">Order</a></td>
      <td><span class="parametername">order</span></td>
      <td><p>Specifies the order of the key values to sort the result.</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;TKey&gt;</td>
      <td><p>All distinct key values contained in the items of the collection in the specified order.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
