Compartir a través de


PSDataStreams.Error Property

Definition

Gets or sets the error buffer. Powershell invocation writes the error data into this buffer.

public:
 property System::Management::Automation::PSDataCollection<System::Management::Automation::ErrorRecord ^> ^ Error { System::Management::Automation::PSDataCollection<System::Management::Automation::ErrorRecord ^> ^ get(); void set(System::Management::Automation::PSDataCollection<System::Management::Automation::ErrorRecord ^> ^ value); };
public System.Management.Automation.PSDataCollection<System.Management.Automation.ErrorRecord> Error { get; set; }
member this.Error : System.Management.Automation.PSDataCollection<System.Management.Automation.ErrorRecord> with get, set
Public Property Error As PSDataCollection(Of ErrorRecord)

Property Value

Exceptions

Cannot set to a null value.

Powershell instance cannot be changed in its current state.

Object is disposed.

Applies to