WriteOrThrowErrorCommand.ErrorRecord Property

Definition

If Exception is specified, this is ErrorRecord.ErrorDetails.Message. Otherwise, the Exception is System.Exception, and this is Exception.Message.

public:
 property System::Management::Automation::ErrorRecord ^ ErrorRecord { System::Management::Automation::ErrorRecord ^ get(); void set(System::Management::Automation::ErrorRecord ^ value); };
public System.Management.Automation.ErrorRecord ErrorRecord { get; set; }
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="ErrorRecord")]
public System.Management.Automation.ErrorRecord ErrorRecord { get; set; }
member this.ErrorRecord : System.Management.Automation.ErrorRecord with get, set
Public Property ErrorRecord As ErrorRecord

Property Value

ErrorRecord
Attributes

Applies to