PSInvalidOperationException PSInvalidOperationException PSInvalidOperationException Class

Definition

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

public class PSInvalidOperationException : InvalidOperationException, System.Management.Automation.IContainsErrorRecord
type PSInvalidOperationException = class
    inherit InvalidOperationException
    interface IContainsErrorRecord
Public Class PSInvalidOperationException
Inherits InvalidOperationException
Implements IContainsErrorRecord
Inheritance
PSInvalidOperationExceptionPSInvalidOperationExceptionPSInvalidOperationException
Implements

Remarks

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

Constructors

PSInvalidOperationException() PSInvalidOperationException() PSInvalidOperationException()

Initializes a new instance of the PSInvalidOperationException class.

PSInvalidOperationException(String) PSInvalidOperationException(String) PSInvalidOperationException(String)

Initializes a new instance of the PSInvalidOperationException class.

PSInvalidOperationException(SerializationInfo, StreamingContext) PSInvalidOperationException(SerializationInfo, StreamingContext) PSInvalidOperationException(SerializationInfo, StreamingContext)

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

PSInvalidOperationException(String, Exception) PSInvalidOperationException(String, Exception) PSInvalidOperationException(String, Exception)

Initializes a new instance of the PSInvalidOperationException class.

Properties

ErrorRecord ErrorRecord ErrorRecord

Additional information about the error

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

Applies to