Condividi tramite


PSObjectDisposedException Class

Definition

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

public ref class PSObjectDisposedException : ObjectDisposedException, System::Management::Automation::IContainsErrorRecord
[System.Serializable]
public class PSObjectDisposedException : ObjectDisposedException, System.Management.Automation.IContainsErrorRecord
public class PSObjectDisposedException : ObjectDisposedException, System.Management.Automation.IContainsErrorRecord
[<System.Serializable>]
type PSObjectDisposedException = class
    inherit ObjectDisposedException
    interface IContainsErrorRecord
type PSObjectDisposedException = class
    inherit ObjectDisposedException
    interface IContainsErrorRecord
Public Class PSObjectDisposedException
Inherits ObjectDisposedException
Implements IContainsErrorRecord
Inheritance
PSObjectDisposedException
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

PSObjectDisposedException(SerializationInfo, StreamingContext)
Obsolete.

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

PSObjectDisposedException(String, Exception)

Initializes a new instance of the PSObjectDisposedException class.

PSObjectDisposedException(String, String)

Initializes a new instance of the PSObjectDisposedException class.

PSObjectDisposedException(String)

Initializes a new instance of the PSObjectDisposedException class.

Properties

ErrorRecord

Additional information about the error.

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

Applies to