PSEventJob(PSEventManager, PSEventSubscriber, ScriptBlock, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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