Runspace.Events Property

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Gets the event manager who handles subscribing to and receiving events that are raised by Windows PowerShell. This property is introduced in Windows PowerShell 2.0.

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

public abstract PSEventManager Events { get; }

Property Value

Type: System.Management.Automation.PSEventManager

A PSEventManager object that represents the event manager that handles subscribing to and receiving events that are raised by Windows PowerShell.

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

ADD
Show: