Searches for a service that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence.
Namespace:  System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Function FindIndex ( _
    serviceType As Type, _
    match As Predicate(Of Object) _
) As Integer
'Usage
Dim instance As ServicesContainer 
Dim serviceType As Type 
Dim match As Predicate(Of Object)
Dim returnValue As Integer 
returnValue = instance.FindIndex(serviceType, _
    match)
public int FindIndex(
    Type serviceType,
    Predicate<Object> match
)
public:
int FindIndex(
    Type^ serviceType, 
    Predicate<Object^>^ match
)
member FindIndex : 
        serviceType:Type * 
        match:Predicate<Object> -> int
public function FindIndex(
    serviceType : Type, 
    match : Predicate<Object>
) : int
Parameters
- serviceType 
 Type: System.Type- The service type. 
- match 
 Type: System.Predicate<Object>- The delegate that defines the conditions of the element to search for. 
Return Value
Type: System.Int32
The zero-based index of the first occurrence, if found; otherwise, -1.