PSDataStreams.Error Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.