ForEachObjectCommand Class

The ForEach-Object cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.


Namespace: Microsoft.PowerShell.Commands
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As ForEachObjectCommand

'Declaration
<CmdletAttribute("ForEach", "Object", SupportsShouldProcess:=True, DefaultParameterSetName:="ScriptBlockSet", HelpUri:="http://go.microsoft.com/fwlink/?LinkID=113300", RemotingCapability:=RemotingCapability.None)> _
<SuppressMessageAttribute("Microsoft.PowerShell", "PS1012:CallShouldProcessOnlyIfDeclaringSupport")> _
Public NotInheritable Class ForEachObjectCommand
	Inherits PSCmdlet
/** @attribute CmdletAttribute("ForEach", "Object", SupportsShouldProcess=true, DefaultParameterSetName="ScriptBlockSet", HelpUri="http://go.microsoft.com/fwlink/?LinkID=113300", RemotingCapability=RemotingCapability.None) */ 
/** @attribute SuppressMessageAttribute("Microsoft.PowerShell", "PS1012:CallShouldProcessOnlyIfDeclaringSupport") */ 
public final class ForEachObjectCommand extends PSCmdlet
CmdletAttribute("ForEach", "Object", SupportsShouldProcess=true, DefaultParameterSetName="ScriptBlockSet", HelpUri="http://go.microsoft.com/fwlink/?LinkID=113300", RemotingCapability=RemotingCapability.None) 
SuppressMessageAttribute("Microsoft.PowerShell", "PS1012:CallShouldProcessOnlyIfDeclaringSupport") 
public final class ForEachObjectCommand extends PSCmdlet

This cmdlet performs an operation against each of a set of input objects. For more information about this cmdlet, see ForEach-Object in the Microsoft TechNet Library.

For Help at the command line, type:

get-help foreach-object


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2014 Microsoft