title: search for an item in collection type in VB .NET 1.1
body: <p>I am using VB .NET 1.1 and wanted to make sure if inside a key value pair class "Dates" (collection type) a key by name "TerminationDate" exists.</p>
  
  <pre><code>If Not Dates.Item("TerminationDate") Is Nothing Then
    'Do x y z'
  End if
  </code></pre>
  
  <p>But this is throwing an exception:
  Argument Index is not a valid value.</p>
  
  <p>I am very new to VB.</p>
  
  <p>Thanks</p>