Windows Dev Center

Job.StateChanged Event

Event fired when the status of the job changes, such as when the job has completed in all runspaces or failed in any one runspace. This event is introduced in Windows PowerShell 2.0.


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

'Usage
Dim instance As Job
Dim handler As EventHandler(Of JobStateEventArgs)

AddHandler instance.StateChanged, handler

public event EventHandler<JobStateEventArgs> StateChanged
/** @event */
public void add_StateChanged (EventHandler<JobStateEventArgs> value)

/** @event */
public void remove_StateChanged (EventHandler<JobStateEventArgs> value)

 

Target Platforms


Show:
© 2015 Microsoft