ConfirmImpact ConfirmImpact ConfirmImpact Enum

Definition

Defines the ConfirmImpact levels. These levels describe the "destructiveness" of an action, and thus the degree of important that the user confirm the action. For example, setting the read-only flag on a file might be Low, and reformatting a disk might be High. These levels are also used in $ConfirmPreference to describe which operations should be confirmed. Operations with ConfirmImpact equal to or greater than $ConfirmPreference are confirmed. Operations with ConfirmImpact.None are never confirmed, and no operations are confirmed when $ConfirmPreference is ConfirmImpact.None (except when explicitly requested with -Confirm).

public enum ConfirmImpact
type ConfirmImpact = 
Public Enum ConfirmImpact
Inheritance
ConfirmImpactConfirmImpactConfirmImpact

Fields

High High High

This action is potentially highly "destructive" and should be confirmed by default unless otherwise specified.

Low Low Low

This action only needs to be confirmed when the user has requested that low-impact changes must be confirmed.

Medium Medium Medium

This action should be confirmed in most scenarios where confirmation is requested.

None None None

There is never any need to confirm this action.