# C1.Schedule.DateList.Contains

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_DateList_Contains_" data-uid="C1.Schedule.DateList.Contains*">Contains Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_DateList_Contains_" data-uid="C1.Schedule.DateList.Contains*"></a>
<h4 id="C1_Schedule_DateList_Contains_System_DateTime_" data-uid="C1.Schedule.DateList.Contains(System.DateTime)">Contains(DateTime)</h4>
<div class="markdown level1 summary"><p>Returns true if specified item exists in the wrapped list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Contains(DateTime item)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Contains(item As Date) 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">item</span></td>
      <td><p>An item 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>True if item exists in the wrapped list.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_DateList_Contains_" data-uid="C1.Schedule.DateList.Contains*"></a>
<h4 id="C1_Schedule_DateList_Contains_System_DateTime___" data-uid="C1.Schedule.DateList.Contains(System.DateTime[])">Contains(DateTime[])</h4>
<div class="markdown level1 summary"><p>Returns true if either of specified items exists in the wrapped list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Contains(DateTime[] days)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Contains(days As Date()) 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>[]</td>
      <td><span class="parametername">days</span></td>
      <td><p>An array of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> values 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>True if at least one of specified items exists in the wrapped list.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_DateList_Contains_" data-uid="C1.Schedule.DateList.Contains*"></a>
<h4 id="C1_Schedule_DateList_Contains_System_Collections_Generic_IList_System_DateTime__" data-uid="C1.Schedule.DateList.Contains(System.Collections.Generic.IList{System.DateTime})">Contains(IList&lt;DateTime&gt;)</h4>
<div class="markdown level1 summary"><p>Returns true if either of specified items exists in the wrapped list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Contains(IList&lt;DateTime&gt; days)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Contains(days As IList(Of Date)) 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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>&gt;</td>
      <td><span class="parametername">days</span></td>
      <td><p>A list of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> values 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>True if at least one of specified items exists in the wrapped list.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
