Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ActionPreferenceStopException Class

ActionPreferenceStopException indicates that the command stopped due to the ActionPreference.Stop or Inquire policy.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As ActionPreferenceStopException

[SerializableAttribute] 
public ref class ActionPreferenceStopException : public RuntimeException
/** @attribute SerializableAttribute() */ 
public class ActionPreferenceStopException extends RuntimeException
SerializableAttribute 
public class ActionPreferenceStopException extends RuntimeException

For example, if $WarningPreference is "Stop", the command will fail with this error if a cmdlet calls WriteWarning.


System.Object
   System.Exception
     System.SystemException
       System.Management.Automation.RuntimeException
        System.Management.Automation.ActionPreferenceStopException

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2015 Microsoft