Returns the index of an object in the array that passes a test in a given Block for a given set of enumeration options.
Original signature is '- (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate'
Available in Mac OS X v10.6 and later.

C# | Visual Basic | Visual C++ |
public virtual NSUInteger IndexOfObjectWithOptionsPassingTest( NSEnumerationOptions opts, Func<Id, NSUInteger, IntPtr> predicate )
Public Overridable Function IndexOfObjectWithOptionsPassingTest ( _ opts As NSEnumerationOptions, _ predicate As Func(Of Id, NSUInteger, IntPtr) _ ) As NSUInteger
public: virtual NSUInteger IndexOfObjectWithOptionsPassingTest( NSEnumerationOptions opts, Func<Id^, NSUInteger, IntPtr>^ predicate )

- opts (NSEnumerationOptions)
- A bitmask that specifies the options for the enumeration (whether it should be performed concurrently and whether it should be performed in reverse order).
- predicate (Func<(Of <(<'Id, NSUInteger, IntPtr>)>)>)
- The block to apply to elements in the array.

The index whose corresponding value in the array passes the test specified by predicate and opts. If the opts bitmask specifies reverse order, then the last item that matches is returned. Otherwise, the index of the first matching object is returned. If no objects in the array pass the test, returns NSNotFound.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)