Values
This enum has the following values
Name | Value | Displays (error?) message | Continues execution | Comments |
SilentlyContinue | 0 | ✗ | ✓ | Messages are suppressed, and execution continues. Default for $informationPreference and $verbosePreference |
Stop | 1 | ✓ | ✓ | Stops execution |
Continue | 2 | ✗ | ✓ | Display (error...) and continue. Default for $errorActionPreference and $warningPreference . |
Inquire | 3 | ✓ | | User is prompted for response on how to continue |
Ignore | 4 | ✗ | ✓ | Intended for per-command use. The «event» (error etc.) is ignored and not recorded in the respective stream. |
Suspend | 5 | | | Not valid for $errorActionPreference |
Break(?) | ? | ? | ? | New in newer version of .NET? |
What exactly is the difference between SilentlyContinue and Ignore?
In PowerShell, it's possible to retrieve these values with
[System.Enum]::GetValues('System.Management.Automation.ActionPreference').foreach({
write-host $_.ToString() $_.value__
})