次の方法で共有


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

'宣言
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