Share via


PowerShellExecutionException.FailReason Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The reason for the failure of the PowerShell script execution.

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

Syntax

'Declaration
Public ReadOnly Property FailReason As Exception
    Get
'Usage
Dim instance As PowerShellExecutionException
Dim value As Exception

value = instance.FailReason
public Exception FailReason { get; }
public:
property Exception^ FailReason {
    Exception^ get ();
}
function get FailReason () : Exception
member FailReason : Exception

Property Value

Type: System.Exception
The reason given for the failure.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also

Reference

PowerShellExecutionException Class

PowerShellExecutionException Members

System.Management.Automation.Activities Namespace