PSObjectDisposedException Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new PSObjectDisposedException object. The variants of this constructor can create an object that contains the object that is being disposed, an object that contains an exception message, and more.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

NameDescription
System_CAPS_protmethodPSObjectDisposedException(SerializationInfo, StreamingContext)

Creates a new PSObjectDisposedException object that contains information that is read from the provided serialization information.

System_CAPS_pubmethodPSObjectDisposedException(String)

Creates a new PSObjectDisposedException object that contains the object that is being disposed.

System_CAPS_pubmethodPSObjectDisposedException(String, Exception)

Creates a new PSObjectDisposedException object that contains an exception message and the inner exception that caused this exception to be thrown.

System_CAPS_pubmethodPSObjectDisposedException(String, String)

Creates a new PSObjectDisposedException object that contains the object that is being disposed and an exception message.

Return to top

Community Additions

ADD
Show: