This topic has not yet been rated - Rate this topic

ShouldProcessReason Enumeration

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Defines any special circumstances surrounding the call to the ShouldProcess method, such as the WhatIf parameter was specified at the command line.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
'Usage
Dim instance As ShouldProcessReason

[FlagsAttribute] 
public enum ShouldProcessReason
/** @attribute FlagsAttribute() */ 
public enum ShouldProcessReason
FlagsAttribute 
public enum ShouldProcessReason
Member name Description
None No special circumstances existed.
WhatIf The WhatIf parameter was specified at the command line or the $WhatIfPreference variable is set.

WhatIf behavior can be requested explicitly using the WhatIf parameter of the cmdlet, or implicitly for all cmdlets that support ShouldProcess by setting the $WhatIfPreference variable. Other hosts may have other ways to request WhatIf behavior.


 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)