PSJob.StateChanged Field

Event fired when the status of the PSJob changes, such as when the job has completed in all runspaces or failed in any one namespace.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)

Usage

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields")> _
Public StateChanged As EventHandler(Of PSJobStateEventArgs)
[SuppressMessageAttribute("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields")] 
public EventHandler<PSJobStateEventArgs> StateChanged
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1051:DoNotDeclareVisibleInstanceFields")] 
public:
EventHandler<PSJobStateEventArgs^>^ StateChanged
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields") */ 
public EventHandler<PSJobStateEventArgs> StateChanged
SuppressMessageAttribute("Microsoft.Design", "CA1051:DoNotDeclareVisibleInstanceFields") 
public var StateChanged : EventHandler<PSJobStateEventArgs>

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP

See Also

Reference

PSJob Class
PSJob Members
System.Management.Automation Namespace