次の方法で共有


ReadOnlyLinkedElementCollection<T>.Find(Predicate<T>) Method

Definition

Finds first element in collection which matches given condition.

public:
 T Find(Predicate<T> ^ match);
public T Find (Predicate<T> match);
member this.Find : Predicate<'T (requires 'T :> Microsoft.VisualStudio.Modeling.ModelElement)> -> 'T
Public Function Find (match As Predicate(Of T)) As T

Parameters

match
Predicate<T>

Condition.

Returns

T

First element from collection for which predicate returns true or null if no such element exists.

Applies to