Leer en inglés

Compartir a través de


PSInvalidOperationException Class

Definition

This is a wrapper for exception class InvalidOperationException which provides additional information via IContainsErrorRecord.

C++
public ref class PSInvalidOperationException : InvalidOperationException, System::Management::Automation::IContainsErrorRecord
Inheritance
PSInvalidOperationException
Attributes
Implements

Remarks

Instances of this exception class are usually generated by the PowerShell Engine. It is unusual for code outside the PowerShell Engine to create an instance of this class.

Constructors

PSInvalidOperationException()

Initializes a new instance of the PSInvalidOperationException class.

PSInvalidOperationException(SerializationInfo, StreamingContext)
Obsolete.

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

PSInvalidOperationException(String, Exception)

Initializes a new instance of the PSInvalidOperationException class.

PSInvalidOperationException(String)

Initializes a new instance of the PSInvalidOperationException class.

Properties

ErrorRecord

Additional information about the error.

Methods

Applies to

Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0