InvalidPowerShellStateException Members

Exception that is thrown when the state of the PowerShell object is different from the expected state. For example, this exception is thrown if you invoke the pipeline and then try to add a command to the pipeline. This class is introduced in Windows PowerShell 2.0.

The following tables list the members exposed by the InvalidPowerShellStateException type.

(see also Protected Constructors)
 NameDescription
 InvalidPowerShellStateExceptionOverloaded. 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.
Top

  Name Description
  InvalidPowerShellStateException Overloaded. 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.
Top

  Name Description
public property CurrentState Gets the state of the PowerShell object when the exception was thrown. This property is introduced in Windows PowerShell 2.0.
public property Data  (Inherited from Exception)
public property HelpLink  (Inherited from Exception)
public property HResult  (Inherited from Exception)
public property InnerException  (Inherited from Exception)
public property Message  (Inherited from Exception)
public property Source  (Inherited from Exception)
public property StackTrace  (Inherited from Exception)
public property TargetSite  (Inherited from Exception)
Top

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodGetBaseException  (Inherited from Exception)
public methodGetHashCode  (Inherited from Object)
public methodGetObjectData  (Inherited from Exception)
public methodGetType  (Inherited from Exception)
public methodToString  Overridden. (Inherited from Object)
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Dump  This element is introduced in Windows PowerShell 5.0. (Defined by ExceptionExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top

  Name Description
protected event SerializeObjectState  (Inherited from Exception)
Top


Show: