Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PSActivity.WarningAction Property

Gets or sets how warnings are handled by the activity. This SDK programming element is introduced in Windows PowerShell 3.0.

Namespace: Microsoft.PowerShell.Activities
Assembly: Microsoft.PowerShell.Workflow.ServiceCore (in Microsoft.PowerShell.Workflow.ServiceCore.dll)
Dim instance As PSActivity
Dim value As InArgument(Of Nullable(Of ActionPreference))

value = instance.WarningAction

instance.WarningAction = value
public InArgument<Nullable<ActionPreference>> WarningAction { get; set; }
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public InArgument<Nullable<ActionPreference>> get_WarningAction ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_WarningAction (InArgument<Nullable<ActionPreference>> value)

public function get WarningAction () : InArgument<Nullable<ActionPreference>>

public function set WarningAction (value : InArgument<Nullable<ActionPreference>>)

Property Value

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


Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.