PSActivity.WarningAction Property


Updated: April 27, 2016

Applies To: Windows PowerShell

Gets or sets how warnings are handled by the activity. Introduced in Windows PowerShell 3.0.

Namespace:   Microsoft.PowerShell.Activities
Assembly:  Microsoft.PowerShell.Workflow.ServiceCore (in Microsoft.PowerShell.Workflow.ServiceCore.dll)

public InArgument<Nullable<ActionPreference>> WarningAction { get; set; }

Property Value

Type: System.Activities.InArgument<Nullable<ActionPreference>>

Returns an InArgument<T> of nullable type ActionPreference.

Return to top

Community Additions