다음을 통해 공유


ShouldProcessReason Enum

Definition

This describes the reason why ShouldProcess returned what it returned. Not all possible reasons are covered.

This enumeration supports a bitwise combination of its member values.

public enum class ShouldProcessReason
[System.Flags]
public enum ShouldProcessReason
[<System.Flags>]
type ShouldProcessReason = 
Public Enum ShouldProcessReason
Inheritance
ShouldProcessReason
Attributes

Fields

Name Value Description
None 0

none of the reasons below

WhatIf 1

WhatIf behavior was requested.

In the host, WhatIf behavior can be requested explicitly for one cmdlet instance using the -WhatIf commandline parameter, or implicitly for all SupportsShouldProcess cmdlets with $WhatIfPreference. Other hosts may have other ways to request WhatIf behavior.

Applies to

See also