Freigeben über


ReadOnlyLinkedElementCollection<T>.FindIndex Method

Finds the first element which satisfies a given condition.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaration
Public Function FindIndex ( _
    match As Predicate(Of T) _
) As Integer
public int FindIndex(
    Predicate<T> match
)
public:
int FindIndex(
    Predicate<T>^ match
)
member FindIndex : 
        match:Predicate<'T> -> int 
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 null 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

Microsoft.VisualStudio.Modeling Namespace