ActionPreference Enumeration
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Defines the actions that the Windows PowerShell runtime takes when an error occurs, and when debugging, progress, warning, and verbose messages are written.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
| Member name | Description |
|---|---|
| Continue | The Windows PowerShell runtime will continue processing and notify the user that an action has occurred. |
| Ignore | |
| Inquire | The Windows PowerShell runtime will stop processing and ask the user how it should proceed. |
| SilentlyContinue | The Windows PowerShell runtime will continue processing without notifying the user that an action has occurred. |
| Stop | The Windows PowerShell runtime will stop processing when an action occurs. |
The actions that the Windows PowerShell runtime takes are also referred to as policies. For example, if a cmdlet ErrorAction parameter is set to SilentlyContinue, the cmdlet runs under a SilentlyContinue policy.
Target Platforms
Windows Developer Preview, Windows Server Developer PreviewSend comments about this topic to Microsoft.