0 out of 1 rated this helpful - Rate this topic

PSCmdlet.BeginProcessing Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Provides a one-time, preprocessing functionality for the cmdlet.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
'Usage

Me.BeginProcessing
protected virtual void BeginProcessing ()
protected void BeginProcessing ()
protected function BeginProcessing ()
Exception type Condition
Exception

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

This method must be overridden in any cmdlet that does preprocessing. 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 reentrant; this method does not have to be callable simultaneously with the ProcessRecord method or the EndProcessing method. None of these input processing methods are called if 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.


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

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)