InvalidPowerShellStateException Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new InvalidPowerShellStateException object. The variants of this constructor can create an empty object, an object that contains an exception message, and more. This constructor is introduced by Windows PowerShell 2.0.

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

NameDescription
System_CAPS_pubmethodInvalidPowerShellStateException()

Creates a new InvalidPowerShellStateException object that is empty. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_protmethodInvalidPowerShellStateException(SerializationInfo, StreamingContext)

Creates a new InvalidPowerShellStateException object that contains information that is read from the provided serialization information. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodInvalidPowerShellStateException(String)

Creates a new instance of the InvalidPowerShellStateException class with an exception message. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodInvalidPowerShellStateException(String, Exception)

Creates a new InvalidPowerShellStateException object that contains an exception message and the inner exception that caused this exception to be thrown. This constructor is introduced by Windows PowerShell 2.0.

Return to top

Community Additions

ADD
Show: