共用方式為


CmdletInvocationException Class

Definition

Indicates that a cmdlet hit a terminating error.

public ref class CmdletInvocationException : System::Management::Automation::RuntimeException
[System.Serializable]
public class CmdletInvocationException : System.Management.Automation.RuntimeException
public class CmdletInvocationException : System.Management.Automation.RuntimeException
[<System.Serializable>]
type CmdletInvocationException = class
    inherit RuntimeException
type CmdletInvocationException = class
    inherit RuntimeException
Public Class CmdletInvocationException
Inherits 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

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to