Performs the specified action on each element of the
ObjectSet.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Sub ForEach( _
ByVal action As Action(Of T) _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ObjectSet(Of T)
Dim action As Action(Of T)
instance.ForEach(action)
|
| C# | |
|---|
public void ForEach(
Action<T> action
) |
| Managed Extensions for C++ | |
|---|
public: void ForEach(
Action<T>* action
) |
| C++/CLI | |
|---|
public:
void ForEach(
Action<T>^ action
) |
Parameters
- action
- The Action delegate to perform on each element of the
ObjectSet.
Exceptions
| Exception | Description |
| ArgumentNullException | Action is null. |
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also