Retrieves the all the elements that match the conditions defined by the specified predicate.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function FindAll( _
ByVal match As Predicate(Of T) _
) As ObjectSet(Of T) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectSet(Of T)
Dim match As Predicate(Of T)
Dim value As ObjectSet(Of T)
value = instance.FindAll(match)
|
| Managed Extensions for C++ | |
|---|
public: ObjectSet<T>* FindAll(
Predicate<T>* match
) |
Parameters
- match
- The Predicate delegate that defines the conditions of the elements to search for.
Return Value
An
ObjectSet containing all the elements that match the
conditions defined by the specified predicate, if found; otherwise, an empty
ObjectSet.
Exceptions
| Exception | Description |
| ArgumentNullException | Match is null. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also