Assembly: System.Management.Automation (in System.Management.Automation.dll)
The error record retrieved by this property should contain a ParentContainsErrorRecordException object in the Exception property of the record rather than a reference to the root, or inner exception, of the record. This prevents a recursive reference between the exception implementing this interface and the error record returned by this property.
When implementing this property, use the ParentContainsErrorRecordException constructor when setting the Exception property of the error record to ensure that the ParentContainsErrorRecordException object has the same exception message as the root exception.
Target PlatformsWindows Developer Preview, Windows Server Developer Preview
Send comments about this topic to Microsoft.