Finds the first element which satisfies a given condition.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Function FindIndex ( _
match As Predicate(Of T) _
) As Integer
'Usage
Dim instance As ReadOnlyLinkedElementCollection
Dim match As Predicate(Of T)
Dim returnValue As Integer
returnValue = instance.FindIndex(match)
public int FindIndex(
Predicate<T> match
)
public:
int FindIndex(
Predicate<T>^ match
)
public function FindIndex(
match : Predicate<T>
) : int
Parameters
match
Type: System.Predicate<T>The condition to check.
Return Value
Type: System.Int32
First element in the list for which the predicate returns true; or nulla null reference (Nothing in Visual Basic) if no element is found.
Remarks
Returns nulla null reference (Nothing in Visual Basic) if no element match in the collection exists.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ReadOnlyLinkedElementCollection<T> Class