ErrorDetails Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the ErrorDetails class. The variants of this constructor can create an object that contains a replacement message, an object that contains the class with localization information (provided by assemblies, cmdlets, or providers), and more.

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

NameDescription
System_CAPS_pubmethodErrorDetails(Assembly, String, String, Object[])

Initializes a new instance of the ErrorDetails class that contains a localizable version of a message based on a template string supplied by an assembly.

System_CAPS_pubmethodErrorDetails(Cmdlet, String, String, Object[])

Initializes a new instance of the ErrorDetails class that contains a localizable version of a message based on a template string supplied by a cmdlet.

System_CAPS_pubmethodErrorDetails(IResourceSupplier, String, String, Object[])

Initializes a new instance of the ErrorDetails class that contains a localizable version of a message based on a template string supplied by a Windows PowerShell provider.

System_CAPS_protmethodErrorDetails(SerializationInfo, StreamingContext)

Initializes a new instance of the ErrorDetails class that contains information read from the provided serialization information.

System_CAPS_pubmethodErrorDetails(String)

Initializes a new instance of the ErrorDetails class that contains a replacement error message.

For more information about error records, see Windows PowerShell Error Records.

Return to top

Community Additions

ADD
Show: