Lire en anglais

Partager via


InvalidPowerShellStateException Class

Definition

Defines exception which is thrown when state of the PowerShell is different from the expected state.

C++
public ref class InvalidPowerShellStateException : SystemException
Inheritance
InvalidPowerShellStateException
Attributes

Constructors

InvalidPowerShellStateException()

Creates a new instance of InvalidPowershellStateException class.

InvalidPowerShellStateException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the InvalidPowerShellStateException class with serialized data.

InvalidPowerShellStateException(String, Exception)

Creates a new instance of InvalidPowershellStateException class.

InvalidPowerShellStateException(String)

Creates a new instance of InvalidPowershellStateException class.

Properties

CurrentState

Gets CurrentState of the powershell.

Applies to

Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0