PSEventJob Constructor

Creates a new instance of the PSEventJob class. This constructor is introduced by Windows PowerShell 2.0.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim eventManager As PSEventManager
Dim subscriber As PSEventSubscriber
Dim action As ScriptBlock
Dim name As String

Dim instance As New PSEventJob(eventManager, subscriber, action, name)

public PSEventJob (
	PSEventManager eventManager,
	PSEventSubscriber subscriber,
	ScriptBlock action,
	string name
)
public PSEventJob (
	PSEventManager eventManager, 
	PSEventSubscriber subscriber, 
	ScriptBlock action, 
	String name
)
public function PSEventJob (
	eventManager : PSEventManager, 
	subscriber : PSEventSubscriber, 
	action : ScriptBlock, 
	name : String
)

Parameters

eventManager

A PSEventManager object that represents the event manager that controls subscribing to and receiving events.

subscriber

A PSEventSubscriber object that represents an object that receives the event.

action

A ScriptBlock object that defines the action taken when the event arrives.

name

The name of the job that performs the action.

 

Target Platforms


Show:
© 2015 Microsoft