Method FindHostObjectIndex
FindHostObjectIndex(Predicate<object>)
Finds the index of the first host object in HostObjects that matches the specified predicate.
public virtual int FindHostObjectIndex(Predicate<object> predicate)
Parameters
Returns
- int
The zero-based index of the first matching host object if found; otherwise, -1.
Exceptions
- ArgumentNullException
Thrown if
predicateis null.