ActionPreference Enum

Definition

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
Inheritance
ActionPreference

Fields

Continue 2

Handle this event as normal and continue

Ignore 4

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

Inquire 3

Ask whether to stop or continue

SilentlyContinue 0

Ignore this event and continue

Stop 1

Stop the command

Suspend 5

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

Applies to