ActionPreference ActionPreference 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 ActionPreference
type ActionPreference = 
Public Enum ActionPreference
Inheritance
ActionPreferenceActionPreferenceActionPreference

Fields

Continue Continue Continue

Handle this event as normal and continue

Ignore Ignore Ignore

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

Inquire Inquire Inquire

Ask whether to stop or continue

SilentlyContinue SilentlyContinue SilentlyContinue

Ignore this event and continue

Stop Stop Stop

Stop the command

Suspend Suspend Suspend

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