Compartilhar via


ActionPreferenceStopException Class

Definition

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
ActionPreferenceStopException
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, Exception)

Instantiates a new instance of the ActionPreferenceStopException class.

ActionPreferenceStopException(String)

Instantiates a new instance of the ActionPreferenceStopException class.

Properties

ErrorRecord

See IContainsErrorRecord

WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to