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

 

Updated: April 27, 2016

Applies To: Windows PowerShell

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)

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

[SerializableAttribute]
public class ActionPreferenceStopException : RuntimeException

NameDescription
System_CAPS_pubmethodActionPreferenceStopException()

Instantiates a new instance of the ActionPreferenceStopException class.

System_CAPS_protmethodActionPreferenceStopException(SerializationInfo, StreamingContext)

Initializes a new instance of the ActionPreferenceStopException class using data serialized via ISerializable.

System_CAPS_pubmethodActionPreferenceStopException(String)

Instantiates a new instance of the ActionPreferenceStopException class.

System_CAPS_pubmethodActionPreferenceStopException(String, Exception)

Instantiates a new instance of the ActionPreferenceStopException class.

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyErrorRecord
System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

System_CAPS_pubpropertyWasThrownFromThrowStatement

Gets or sets a value that indicates whether the exception was thrown from a throw statement.(Inherited from RuntimeException.)

NameDescription
System_CAPS_proteventSerializeObjectState

(Inherited from Exception.)

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

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

Return to top
Show: