EnumerableHelpers.ForEach Method (IEnumerable, Action, TArg)
Applies To: System Center Configuration Manager 2012, System Center Configuration Manager 2012
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Namespace: Microsoft.ConfigurationManagement.ApplicationManagement
Assembly: Microsoft.ConfigurationManagement.ApplicationManagement (in Microsoft.ConfigurationManagement.ApplicationManagement.dll)
Usage
'Usage
Dim collection As IEnumerable(Of T)
Dim action As Action(Of T, TArg)
Dim arg As TArg
EnumerableHelpers.ForEach(collection, action, arg)
Syntax
'Declaration
<ExtensionAttribute> _
<DebuggerStepThroughAttribute> _
Public Shared Sub ForEach(Of T, TArg) ( _
collection As IEnumerable(Of T), _
action As Action(Of T, TArg), _
arg As TArg _
)
[ExtensionAttribute]
[DebuggerStepThroughAttribute]
public static void ForEach<T,TArg> (
IEnumerable<T> collection,
Action<T,TArg> action,
TArg arg
)
[ExtensionAttribute]
[DebuggerStepThroughAttribute]
public:
generic<typename T, typename TArg>
static void ForEach (
IEnumerable<T>^ collection,
Action<T, TArg>^ action,
TArg arg
)
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
Reference
EnumerableHelpers Class
EnumerableHelpers Members
Microsoft.ConfigurationManagement.ApplicationManagement Namespace