Cmdlet.ShouldContinue Method
Updated: April 27, 2016
Applies To: Windows PowerShell
Requests confirmation of an operation from the user. This is typically a second query to the user. The variants of this method can send the query with or without providing yesToall or noToall options to the user.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
| Name | Description | |
|---|---|---|
![]() | ShouldContinue(String, String) | Requests confirmation of an operation from the user by sending a second query to the user. |
![]() | ShouldContinue(String, String, Boolean, Boolean, Boolean) | Confirm an operation or grouping of operations with the user. This differs from ShouldProcess in that it is not affected by preference settings or command-line parameters, it always does the query. This variant offers Yes, No, YesToAll and NoToAll. |
![]() | ShouldContinue(String, String, Boolean, Boolean) | Requests confirmation of an operation from the user by sending a second query to the user with yesToall and noToall options. |
This method is typically called after a call to the ShouldProcess method to gather additional feedback from the user. For more information about confirmation requests, see Requesting Confirmation.
For more information about cmdlets, see Windows PowerShell Cmdlets.
