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 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

        <param name="eventManager">
        The event manager to which we forward events.
        </param><param name="sender">
        The object that generated this event.
        </param><param name="sourceIdentifier">
        An optional subscription identifier that identifies the
        source of the event
        </param><param name="extraData">
        Any additional data you wish to attach to the event
        </param>

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