PSJobStateInfo Constructor (PSJobState, Exception)

Initializes a new instance of the PSJobStateInfo class, and defines the status and the reason for the status of the PSJob.

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

Usage

Syntax

'Declaration
Public Sub New ( _
    state As PSJobState, _
    reason As Exception _
)
public PSJobStateInfo (
    PSJobState state,
    Exception reason
)
public:
PSJobStateInfo (
    PSJobState state, 
    Exception^ reason
)
public PSJobStateInfo (
    PSJobState state, 
    Exception reason
)
public function PSJobStateInfo (
    state : PSJobState, 
    reason : Exception
)

Parameters

  • state
    A PSJobState constant that defines the status of the job.
  • reason
    An exception that describes the reason for the status of the job.

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

PSJobStateInfo Class
PSJobStateInfo Members
System.Management.Automation Namespace