PSNotSupportedException Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new PSNotSupportedException object. The variants of this constructor can create an empty object, 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_pubmethodPSNotSupportedException()

Creates a new PSNotSupportedException object that is empty.

System_CAPS_protmethodPSNotSupportedException(SerializationInfo, StreamingContext)

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

System_CAPS_pubmethodPSNotSupportedException(String)

Creates a new PSNotSupportedException object that contains an exception message.

System_CAPS_pubmethodPSNotSupportedException(String, Exception)

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

Return to top

Community Additions

ADD
Show: