WaitPSJobCommand.BeginProcessing Method

Provides a one-time, pre-processing functionality for the cmdlet.

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



Protected Overrides Sub BeginProcessing
protected override void BeginProcessing ()
virtual void BeginProcessing () override
protected void BeginProcessing ()
protected override function BeginProcessing ()


Exception type Condition

The override of this method can throw any exception that is required.


This method must be overridden in any cmdlet that does pre-processing. The runspace calls this method once for each instance of the cmdlet in the pipeline.

The override of this method does not have to be re-entrant; this method does not have to be callable simultaneously with the ProcessRecord method or the EndProcessing method. None of these input processing methods will be called as long as any one of them is running in a cmdlet instance. However, there is no guarantee that all calls to these methods will occur on the same thread.

For more information about when the Windows PowerShell runtime calls this method, see Cmdlet Lifecycle.

For more information about cmdlets, see Windows PowerShell Cmdlets.

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.


Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP

See Also


WaitPSJobCommand Class
WaitPSJobCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Cmdlet Lifecycle
Windows PowerShell Cmdlets
Windows PowerShell SDK