Removes all the elements that match the conditions defined by the specified predicate.
They are moved to the
RemovedList.
All objects on the
RemovedList are deleted
when the changes on the
ObjectSet are persisted.
Syntax
| Visual Basic (Declaration) | |
|---|
Overloads Public Function RemoveAll( _
ByVal match As Predicate(Of T) _
) As Integer |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectSet(Of T)
Dim match As Predicate(Of T)
Dim value As Integer
value = instance.RemoveAll(match)
|
| C# | |
|---|
public int RemoveAll(
Predicate<T> match
) |
| Managed Extensions for C++ | |
|---|
public: int RemoveAll(
Predicate<T>* match
) |
| C++/CLI | |
|---|
public:
int RemoveAll(
Predicate<T>^ match
) |
Parameters
- match
- The Predicate delegate that defines the conditions of the elements to remove.
Return Value
The number of elements removed from the
ObjectSet.
Exceptions
| Exception | Description |
| ArgumentNullException | Match is null. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also