Export (0) Print
Expand All

ErrorDetails Constructor

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.

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

NameDescription
ErrorDetails (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.
ErrorDetails (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.
ErrorDetails (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.
ErrorDetails (SerializationInfo, StreamingContext)Initializes a new instance of the ErrorDetails class that contains information read from the provided serialization information.
ErrorDetails (String)Initializes a new instance of the ErrorDetails class that contains a replacement error message.

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft