How can I search a collection full of objects to find 1 or more objects with a certain property that matches what was given? So far I have this code already written but the red line doesn't work

VB Code:
  1. Friend Function Find(ByVal strMotorID As String)
  2.             Dim intCounter, intCollectionSize As Integer
  3.             intCollectionSize = Me.Count
  4.             Do While intCounter <= intCollectionSize
  5.                 [COLOR=Red]If Me.List.Item(intCounter).MotorID = strMotorID Then[/COLOR]
  6.  
  7.                 intCounter += 1
  8.                 End If
  9.             Loop
motorID is the property I'm looking at and intCounter is the index of the items added to the collection