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
match
Type: System.Predicate<T>The condition to check.
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
- 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.
See Also
Reference
ReadOnlyLinkedElementCollection<T> Class