Export (0) Print
Expand All

ErrorRecord Members

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

The following tables list the members exposed by the ErrorRecord type.

(see also Protected Constructors)
 NameDescription
 ErrorRecordOverloaded. Initializes a new instance of the ErrorRecord class. The variants of this constructor can create an object that contains information such as the exception, error identifier, and error category, and can create an object that contains information read from the provided serialization information.
Top

  Name Description
  ErrorRecord Overloaded. Initializes a new instance of the ErrorRecord class. The variants of this constructor can create an object that contains information such as the exception, error identifier, and error category, and can create an object that contains information read from the provided serialization information.
Top

  Name Description
public property CategoryInfo Gets information about the category of the error.
public property ErrorDetails Gets and sets more detailed error information, such as a replacement error message.
public property Exception Gets the exception that is associated with this error record.
public property FullyQualifiedErrorId Gets the fully qualified error identifier for this error record.
public property InvocationInfo Gets information about the command that was invoked when the error occurred.
public property PipelineIterationInfo Gets the status of the pipeline when this error record was created. This property is introduced in Windows PowerShell 2.0.
public property ScriptStackTrace Gets the script stack trace for the error.
public property TargetObject Gets the object that was being processed when the error occurred.
Top

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetObjectDataProvides serialization functionality for the ISerializable interface.
public methodGetType  (Inherited from Object)
public methodToStringOverridden. Retrieves a string representation of the current ErrorRecord object.
Top

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
Top


Show:
© 2014 Microsoft