PowerShellExecutionException.ErrorRecords Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
The collection of errors returned by the PowerShell operation.
This API is not CLS-compliant.
Namespace: System.Management.Automation.Activities
Assembly: System.Activities.Extended (in System.Activities.Extended.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public ReadOnly Property ErrorRecords As ReadOnlyCollection(Of ErrorRecord)
Get
'Usage
Dim instance As PowerShellExecutionException
Dim value As ReadOnlyCollection(Of ErrorRecord)
value = instance.ErrorRecords
[CLSCompliantAttribute(false)]
public ReadOnlyCollection<ErrorRecord> ErrorRecords { get; }
[CLSCompliantAttribute(false)]
public:
property ReadOnlyCollection<ErrorRecord^>^ ErrorRecords {
ReadOnlyCollection<ErrorRecord^>^ get ();
}
function get ErrorRecords () : ReadOnlyCollection<ErrorRecord>
[<CLSCompliantAttribute(false)>]
member ErrorRecords : ReadOnlyCollection<ErrorRecord>
Property Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<ErrorRecord>
The error collection.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4
See Also
Reference
PowerShellExecutionException Class