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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_LiveLinq_Indexing_Search_IIndexScanner_2_ContainsKey_" data-uid="C1.LiveLinq.Indexing.Search.IIndexScanner`2.ContainsKey*">ContainsKey Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_LiveLinq_Indexing_Search_IIndexScanner_2_ContainsKey_" data-uid="C1.LiveLinq.Indexing.Search.IIndexScanner`2.ContainsKey*"></a>
<h4 id="C1_LiveLinq_Indexing_Search_IIndexScanner_2_ContainsKey__1_" data-uid="C1.LiveLinq.Indexing.Search.IIndexScanner`2.ContainsKey(`1)">ContainsKey(TKey)</h4>
<div class="markdown level1 summary"><p>Returns a value that indicates whether the collection contains an item with the given key value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool ContainsKey(TKey key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function ContainsKey(key As TKey) As Boolean</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">key</span></td>
      <td><p>The key value to search for</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.boolean">bool</a></td>
      <td><p><b>true</b> if the collection contains an element with the specified key value; otherwise, <b>false</b>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
