# C1.LiveLinq.Indexing.Index-2.FindSingle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_LiveLinq_Indexing_Index_2_FindSingle_" data-uid="C1.LiveLinq.Indexing.Index`2.FindSingle*">FindSingle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_LiveLinq_Indexing_Index_2_FindSingle_" data-uid="C1.LiveLinq.Indexing.Index`2.FindSingle*"></a>
<h4 id="C1_LiveLinq_Indexing_Index_2_FindSingle__1_" data-uid="C1.LiveLinq.Indexing.Index`2.FindSingle(`1)">FindSingle(TKey)</h4>
<div class="markdown level1 summary"><p>Finds the only item with the specified key value and throws an exception if there is not exactly one item with that key value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual T FindSingle(TKey key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function FindSingle(key As TKey) As T</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><span class="xref">T</span></td>
      <td><p>The item of the collection that contains the specified key value, if found.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
