ActionPreference ActionPreference ActionPreference ActionPreference Enum


Defines the Action Preference options. These options determine what will happen when a particular type of event occurs. For example, setting shell variable ErrorActionPreference to "Stop" will cause the command to stop when an otherwise non-terminating error occurs.

public enum class ActionPreference
public enum ActionPreference
type ActionPreference = 
Public Enum ActionPreference


Continue Continue Continue Continue 2

Handle this event as normal and continue

Ignore Ignore Ignore Ignore 4

Ignore the event completely (not even logging it to the target stream)

Inquire Inquire Inquire Inquire 3

Ask whether to stop or continue

SilentlyContinue SilentlyContinue SilentlyContinue SilentlyContinue 0

Ignore this event and continue

Stop Stop Stop Stop 1

Stop the command

Suspend Suspend Suspend Suspend 5

Suspend the command for further diagnosis. Supported only for workflows.

Applies to