Dela via


PSEventHandler Constructors

Definition

Overloads

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

PSEventHandler()

Creates a new instance of the PsEventHandler class.

public:
 PSEventHandler();
public:
 PSEventHandler();
 PSEventHandler();
public PSEventHandler ();
Public Sub New ()

Applies to

PSEventHandler(PSEventManager, Object, String, PSObject)

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

public:
 PSEventHandler(System::Management::Automation::PSEventManager ^ eventManager, System::Object ^ sender, System::String ^ sourceIdentifier, System::Management::Automation::PSObject ^ extraData);
public PSEventHandler (System.Management.Automation.PSEventManager eventManager, object sender, string sourceIdentifier, System.Management.Automation.PSObject extraData);
new System.Management.Automation.PSEventHandler : System.Management.Automation.PSEventManager * obj * string * System.Management.Automation.PSObject -> System.Management.Automation.PSEventHandler
Public Sub New (eventManager As PSEventManager, sender As Object, sourceIdentifier As String, extraData As PSObject)

Parameters

eventManager
PSEventManager

The event manager to which we forward events.

sender
Object

The object that generated this event.

sourceIdentifier
String

An optional subscription identifier that identifies the source of the event

extraData
PSObject

Any additional data you wish to attach to the event

Applies to