Namespace:
Microsoft.ConfigurationManagement.ApplicationManagement
Assembly:
Microsoft.ConfigurationManagement.ApplicationManagement (in
Microsoft.ConfigurationManagement.ApplicationManagement.dll)
Usage
Visual Basic |
Dim collection As IEnumerable(Of T)
Dim action As Action(Of T, TArg1, TArg2)
Dim arg1 As TArg1
Dim arg2 As TArg2
EnumerableHelpers.ForEach(collection, action, arg1, arg2)
|
Syntax
Visual Basic |
<ExtensionAttribute> _
<DebuggerStepThroughAttribute> _
Public Shared Sub ForEach(Of T, TArg1, TArg2) ( _
collection As IEnumerable(Of T), _
action As Action(Of T, TArg1, TArg2), _
arg1 As TArg1, _
arg2 As TArg2 _
)
|
C# |
[ExtensionAttribute]
[DebuggerStepThroughAttribute]
public static void ForEach<T,TArg1,TArg2> (
IEnumerable<T> collection,
Action<T,TArg1,TArg2> action,
TArg1 arg1,
TArg2 arg2
)
|
C++ |
[ExtensionAttribute]
[DebuggerStepThroughAttribute]
public:
generic<typename T, typename TArg1, typename TArg2>
static void ForEach (
IEnumerable<T>^ collection,
Action<T, TArg1, TArg2>^ action,
TArg1 arg1,
TArg2 arg2
)
|
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows Server 2003, and
Target Platforms
See Also