PSEventJob(PSEventManager, PSEventSubscriber, ScriptBlock, String) Constructor

Definition

Creates a new instance of the PSEventJob class.

public:
 PSEventJob(System::Management::Automation::PSEventManager ^ eventManager, System::Management::Automation::PSEventSubscriber ^ subscriber, System::Management::Automation::ScriptBlock ^ action, System::String ^ name);
public PSEventJob (System.Management.Automation.PSEventManager eventManager, System.Management.Automation.PSEventSubscriber subscriber, System.Management.Automation.ScriptBlock action, string name);
new System.Management.Automation.PSEventJob : System.Management.Automation.PSEventManager * System.Management.Automation.PSEventSubscriber * System.Management.Automation.ScriptBlock * string -> System.Management.Automation.PSEventJob
Public Sub New (eventManager As PSEventManager, subscriber As PSEventSubscriber, action As ScriptBlock, name As String)

Parameters

eventManager
PSEventManager

The event manager that controls the event subscriptions

subscriber
PSEventSubscriber

The subscriber that generates these actions

action
ScriptBlock

The script block invoked for this event

name
String

The name of the job

Applies to