ReadOnlyLinkedElementCollection<T>.Find(Predicate<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.