Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Runspace.UpdateRunspaceAvailability Method (RunspaceState, Boolean)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Raises the AvailabilityChanged event when the state of the currently invoked pipeline changes to the specified state. This method is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation.Runspaces
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

protected void UpdateRunspaceAvailability(
	RunspaceState runspaceState,
	bool raiseEvent
)

Parameters

runspaceState
Type: System.Management.Automation.Runspaces.RunspaceState

A RunspaceState constant that identifies the new runspace state that causes the event to be raised.

raiseEvent
Type: System.Boolean

true to raise the event; otherwise, false.

For more information about runspaces and runspace pools, see Host Application Runspaces.

System_CAPS_noteNote

The user at the command line may not necessarily realize that the commands that Windows PowerShell runs are being processed within a runspace. From the command-line user’s point of view, commands are run in a Windows PowerShell session. From a host application’s point of view, commands are run within a runspace.

Return to top

Community Additions

Show: