ActionPreferenceStopException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ActionPreferenceStopException indicates that the command stopped due to the ActionPreference.Stop or Inquire policy.
public ref class ActionPreferenceStopException : System::Management::Automation::RuntimeException
[System.Serializable]
public class ActionPreferenceStopException : System.Management.Automation.RuntimeException
public class ActionPreferenceStopException : System.Management.Automation.RuntimeException
[<System.Serializable>]
type ActionPreferenceStopException = class
inherit RuntimeException
type ActionPreferenceStopException = class
inherit RuntimeException
Public Class ActionPreferenceStopException
Inherits RuntimeException
- Inheritance
- Attributes
Remarks
For example, if $WarningPreference is "Stop", the command will fail with this error if a cmdlet calls WriteWarning.
Constructors
ActionPreferenceStopException() |
Instantiates a new instance of the ActionPreferenceStopException class. |
ActionPreferenceStopException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the ActionPreferenceStopException class using data serialized via ISerializable |
ActionPreferenceStopException(String) |
Instantiates a new instance of the ActionPreferenceStopException class. |
ActionPreferenceStopException(String, Exception) |
Instantiates a new instance of the ActionPreferenceStopException class. |
Properties
ErrorRecord | |
WasThrownFromThrowStatement | (Inherited from RuntimeException) |
Methods
GetObjectData(SerializationInfo, StreamingContext) |
Serializer for ISerializable |
GetObjectData(SerializationInfo, StreamingContext) |
Serializer for ISerializable (Inherited from RuntimeException) |