FeedbackContext.LastError Property

Definition

Gets the last error record generated from executing the last command line.

[System.Runtime.CompilerServices.Nullable(2)]
public System.Management.Automation.ErrorRecord? LastError { [System.Runtime.CompilerServices.NullableContext(2)] get; }
[<System.Runtime.CompilerServices.Nullable(2)>]
[<get: System.Runtime.CompilerServices.NullableContext(2)>]
member this.LastError : System.Management.Automation.ErrorRecord
Public ReadOnly Property LastError As ErrorRecord

Property Value

Attributes

Applies to