ErrorCategoryInfo Class

Provides access to the auxiliary information about an error.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As ErrorCategoryInfo

'Declaration
Public Class ErrorCategoryInfo
public class ErrorCategoryInfo
public class ErrorCategoryInfo

Windows PowerShell displays error information when the $ErrorView variable is set to "CategoryView". The category view string contains the following information.

{Category}: ({TargetName}:{TargetType}):[{Activity}], {Reason}

Where:

Category

Windows PowerShell defined ErrorCategory constant used to display errors by their cause.

Target name

The name of the target object that was being processed when the error occurred (default) or some other cmdlet-defined string.

Target name

The name of the target object that was being processed when the error occurred (default) or some other cmdlet-defined string.

Target type

The .NET Framework type of the target object (default) or some other cmdlet-defined string.

Activity

The name of the cmdlet that created the error record (default) or some other cmdlet-defined string.

Reason

The exception type (default) or some other cmdlet-defined string.

For more information about the error category information of an error record, see Windows PowerShell Error Records.


System.Object
  System.Management.Automation.ErrorCategoryInfo

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


Show:
© 2014 Microsoft