PSJobStateInfo.Reason Property

Gets 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 ReadOnly Property Reason As Exception
public Exception Reason { get; }
public:
property Exception^ Reason {
    Exception^ get ();
}
/** @property */
public Exception get_Reason ()
public function get Reason () : Exception

Property Value

An exception that describes the reason for the status of the job.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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