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

[SuppressMessageAttribute("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields")] 
public event EventHandler<JobStateEventArgs> StateChanged
/** @event */
public void add_StateChanged (EventHandler<JobStateEventArgs> value)

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

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft