Partager via


PSEventHandler Class

Definition

The generic event handler from which specific event handlers extend. When possible, add functionality to this class instead of the IL generated by the GenerateEventHandler() method.

public ref class PSEventHandler
public class PSEventHandler
type PSEventHandler = class
Public Class PSEventHandler
Inheritance
PSEventHandler

Constructors

PSEventHandler()

Creates a new instance of the PsEventHandler class.

PSEventHandler(PSEventManager, Object, String, PSObject)

Creates a new instance of the PsEventHandler class for a given event manager, source identifier, and extra data

Fields

eventManager

The event manager to which we forward events.

extraData

Any additional data you wish to attach to the event.

sender

The sender of the event.

sourceIdentifier

An optional identifier that identifies the source of the event.

Applies to