CmdletInvocationException Class

Definition

Indicates that a cmdlet hit a terminating error.

C++
public ref class CmdletInvocationException : System::Management::Automation::RuntimeException
Inheritance
CmdletInvocationException
Derived
Attributes

Remarks

InnerException is the error which the cmdlet hit.

Constructors

CmdletInvocationException()

Instantiates a new instance of the CmdletInvocationException class.

CmdletInvocationException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the CmdletInvocationException class using data serialized via ISerializable

CmdletInvocationException(String, Exception)

Instantiates a new instance of the CmdletInvocationException class.

CmdletInvocationException(String)

Instantiates a new instance of the CmdletInvocationException class.

Properties

ErrorRecord

The error reported by the cmdlet.

WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

Applies to

Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0