Sdílet prostřednictvím


CommonParameters.ErrorAction Property

Definition

Gets or sets the value of the ErrorAction parameter for the cmdlet.

public:
 property System::Management::Automation::ActionPreference ErrorAction { System::Management::Automation::ActionPreference get(); void set(System::Management::Automation::ActionPreference value); };
public System.Management.Automation.ActionPreference ErrorAction { get; set; }
[System.Management.Automation.Alias(new System.String[] { "ea" })]
[System.Management.Automation.Parameter]
public System.Management.Automation.ActionPreference ErrorAction { get; set; }
member this.ErrorAction : System.Management.Automation.ActionPreference with get, set
[<System.Management.Automation.Alias(new System.String[] { "ea" })>]
[<System.Management.Automation.Parameter>]
member this.ErrorAction : System.Management.Automation.ActionPreference with get, set
Public Property ErrorAction As ActionPreference

Property Value

Attributes

Remarks

This parameter tells the command what to do when an error occurs.

Applies to