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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
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
match
Type: Predicate<T>The condition to check.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.