ErrorRecord.Exception Property


Updated: April 27, 2016

Applies To: Windows PowerShell

Gets the exception that is associated with this error record.

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

public Exception Exception { get; }

Property Value

Type: System.Exception

The exception associated with the error record.

Every error record must contain an exception. For more information about error records, see Windows PowerShell Error Records.

Return to top

Community Additions