Freigeben über


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; }
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="ErrorRecord", Position=0)]
public System.Management.Automation.ErrorRecord ErrorRecord { get; set; }
member this.ErrorRecord : System.Management.Automation.ErrorRecord with get, set
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="ErrorRecord")>]
member this.ErrorRecord : System.Management.Automation.ErrorRecord with get, set
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="ErrorRecord", Position=0)>]
member this.ErrorRecord : System.Management.Automation.ErrorRecord with get, set
Public Property ErrorRecord As ErrorRecord

Property Value

Attributes

Applies to