Share via


PSEventManager Class

Definition

Represents the interface to the PowerShell eventing functionality. This class allows you to subscribe to, and receive events.

public ref class PSEventManager abstract
public abstract class PSEventManager
type PSEventManager = class
Public MustInherit Class PSEventManager
Inheritance
PSEventManager

Constructors

PSEventManager()

Properties

ReceivedEvents

Represents the interface to the PowerShell event queue.

Subscribers

Gets the list of event subscribers.

Methods

CreateEvent(String, Object, Object[], PSObject)

Creates a PowerShell event.

GenerateEvent(String, Object, Object[], PSObject, Boolean, Boolean)

Generate a PowerShell event.

GenerateEvent(String, Object, Object[], PSObject)

Generate a PowerShell event.

GetEventSubscribers(String)

Get the event subscription that corresponds to an identifier

GetNextEventId()

Returns a sequential event ID.

ProcessNewEvent(PSEventArgs, Boolean, Boolean)

Processes new events (which have either been generated by this instance or forwarded to it)

ProcessNewEvent(PSEventArgs, Boolean)

Processes new events (which have either been generated by this instance or forwarded to it)

SubscribeEvent(Object, String, String, PSObject, PSEventReceivedEventHandler, Boolean, Boolean, Int32)

Subscribes to an event on an object.

SubscribeEvent(Object, String, String, PSObject, PSEventReceivedEventHandler, Boolean, Boolean)

Subscribes to an event on an object.

SubscribeEvent(Object, String, String, PSObject, ScriptBlock, Boolean, Boolean, Int32)

Subscribes to an event on an object.

SubscribeEvent(Object, String, String, PSObject, ScriptBlock, Boolean, Boolean)

Subscribes to an event on an object.

UnsubscribeEvent(PSEventSubscriber)

Unsubscribes from an event on an object.

Applies to