CommonParameters.WarningAction Property

Definition

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

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

Property Value

Attributes

Remarks

This parameter tells the command what to do when a warning occurs.

Applies to