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
'Declaração
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
- 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 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
- 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.