Dela via


InvalidPowerShellStateException Class

Definition

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

public ref class InvalidPowerShellStateException : SystemException
[System.Serializable]
public class InvalidPowerShellStateException : SystemException
public class InvalidPowerShellStateException : SystemException
[<System.Serializable>]
type InvalidPowerShellStateException = class
    inherit SystemException
type InvalidPowerShellStateException = class
    inherit SystemException
Public Class InvalidPowerShellStateException
Inherits 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