Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 class ActionPreferenceStopException : 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