Compartir a través de


ReadOnlyLinkedElementCollection<T>.Find Method

Finds the first element in the collection which matches a given condition.

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

Syntax

'Declaración
Public Function Find ( _
    match As Predicate(Of T) _
) As T
public T Find(
    Predicate<T> match
)
public:
T Find(
    Predicate<T>^ match
)
member Find : 
        match:Predicate<'T> -> 'T 
public function Find(
    match : Predicate<T>
) : T

Parameters

Return Value

Type: T
The first element from the collection for which </w:t></w:r><w:r><w:rPr><w:rStyle w:val="ParameterReference"/></w:rPr><w:t>match</w:t></w:r><w:r><w:t> parameter returns true.

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