Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

NameDescription
System_CAPS_pubmethodShouldContinue(String, String)

Requests confirmation of an operation from the user by sending a second query to the user.

System_CAPS_pubmethodShouldContinue(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.

System_CAPS_pubmethodShouldContinue(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.

Return to top

Community Additions

Show: