ActionPreferenceStopException.ErrorRecord Property

Definition

public:
 virtual property System::Management::Automation::ErrorRecord ^ ErrorRecord { System::Management::Automation::ErrorRecord ^ get(); };
public override System.Management.Automation.ErrorRecord ErrorRecord { get; }
member this.ErrorRecord : System.Management.Automation.ErrorRecord
Public Overrides ReadOnly Property ErrorRecord As ErrorRecord

Property Value

ErrorRecord

Remarks

If this error results from a non-terminating error being promoted to terminating due to -ErrorAction or $ErrorActionPreference, this is the non-terminating error.

Applies to