PSInvalidOperationException Members
The exception thrown when an operation that is not valid is requested.
The following tables list the members exposed by the PSInvalidOperationException type.
(see also
Protected Constructors
)
Top
| Name | Description | |
|---|---|---|
| PSInvalidOperationException | Overloaded. Creates a new PSInvalidOperationException object. The variants of this constructor can create an empty object, an object that contains an exception message, and more. |
| Name | Description | |
|---|---|---|
| PSInvalidOperationException | Overloaded. Creates a new PSInvalidOperationException object. The variants of this constructor can create an empty object, an object that contains an exception message, and more. |
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
![]() | Data | (Inherited from Exception) |
![]() | ErrorRecord | Gets the error record that provides more information about the error. |
![]() | HelpLink | (Inherited from Exception) |
![]() | InnerException | (Inherited from Exception) |
![]() | Message | (Inherited from Exception) |
![]() | Source | (Inherited from Exception) |
![]() | StackTrace | (Inherited from Exception) |
![]() | TargetSite | (Inherited from Exception) |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object) |
![]() | GetBaseException | (Inherited from Exception) |
![]() | GetHashCode | (Inherited from Object) |
![]() | GetObjectData | Overridden. Provides serialization functionality for the ISerializable interface. |
![]() | GetType | (Inherited from Exception) |
![]() | ToString | Overridden. (Inherited from Object) |
| Name | Description | |
|---|---|---|
|
Finalize | (Inherited from Object) |
|
MemberwiseClone | (Inherited from Object) |
| Name | Description | |
|---|---|---|
|
SerializeObjectState | (Inherited from Exception) |
Reference
PSInvalidOperationException ClassSystem.Management.Automation Namespace
Other Resources
Windows PowerShell SDKSend comments about this topic to Microsoft.

