Expand Minimize

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

public enum ActionPreference
public enum ActionPreference
public enum ActionPreference
Member nameDescription
ContinueThe Windows PowerShell runtime continues processing and notifies the user that an action has occurred.
IgnoreThe event is completely ignored and is not logged to the target stream.
InquireThe Windows PowerShell runtime stops processing and asks the user how it should proceed.
SilentlyContinueThe Windows PowerShell runtime continues processing without notifying the user that an action has occurred.
StopThe Windows PowerShell runtime stops processing when an action occurs.
Suspend 

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.


 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft. All rights reserved.