This topic has not yet been rated - Rate this topic

ErrorRecord Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Describes a terminating or nonterminating error that occurred during the processing of a command.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
'Usage
Dim instance As ErrorRecord

[SerializableAttribute] 
public class ErrorRecord : ISerializable
/** @attribute SerializableAttribute() */ 
public class ErrorRecord implements ISerializable
SerializableAttribute 
public class ErrorRecord implements ISerializable

The ErrorRecord class is used only by the Windows PowerShell runtime. There are no established scenarios for deriving from this class. For more information about error records, see Windows PowerShell Error Records.

Error records that describe terminating errors are reported when the Cmdlet.ThrowTerminatingError method and the CmdletProvider.ThrowTerminatingError method are called.

Error records that describe nonterminating errors are reported by calling the Cmdlet.WriteError method and the CmdletProvider.WriteError method.

Error records are also used by several exceptions that are thrown by the Windows PowerShell runtime.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)