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.dll)
Dim instance As ActionPreference
Public Enumeration ActionPreference
public enum ActionPreference
public enum class ActionPreference
public enum ActionPreference
public enum ActionPreference
| Member name | Description |
|---|
| Continue | The Windows PowerShell runtime will continue processing and notify the user that an action has occurred. |
| 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.
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2 Target Platforms
Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2