ReadOnlyLinkedElementCollection<T>.FindIndex Method

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

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

See Also

Reference

ReadOnlyLinkedElementCollection<T> Class

ReadOnlyLinkedElementCollection<T> Members

Microsoft.VisualStudio.Modeling Namespace