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 (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Public Function Find ( _
    match As Predicate(Of T) _
) As T
'使用
Dim instance As ReadOnlyLinkedElementCollection
Dim match As Predicate(Of T)
Dim returnValue As T

returnValue = instance.Find(match)
public T Find(
    Predicate<T> match
)
public:
T Find(
    Predicate<T>^ match
)
public function Find(
    match : Predicate<T>
) : T

Parameters

Return Value

Type: T

The first element from the collection for which match parameter returns true.

Remarks

Returns a null reference (Nothing in Visual Basic) if no element match in the collection exists.

Permissions

See Also

Reference

ReadOnlyLinkedElementCollection<T> Class

ReadOnlyLinkedElementCollection<T> Members

Microsoft.VisualStudio.Modeling Namespace