ActionPreference Enumeration
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)
Usage

Dim instance As ActionPreference
Syntax

Visual Basic
Public Enumeration ActionPreference
C#
public enum ActionPreference
C++
public enum class ActionPreference
J#
public enum ActionPreference
JScript
public enum ActionPreference
Members

Member nameDescription
ContinueThe Windows PowerShell runtime will continue processing and notify the user that an action has occurred.
InquireThe Windows PowerShell runtime will stop processing and ask the user how it should proceed.
SilentlyContinueThe Windows PowerShell runtime will continue processing without notifying the user that an action has occurred.
StopThe Windows PowerShell runtime will stop processing when an action occurs.
Remarks

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.


Platforms

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
See Also

Page view tracker