Windows PowerShell provides should-process and should-continue functionality to providers for confirming operations. Although both processes can be used to confirm an operation with the user, a call to the System.Management.Automation.Provider.CmdletProvider.ShouldProcess method can be affected by preference settings and command-line parameters that can specify whether the query is or is not displayed. In contrast, a call to the System.Management.Automation.Provider.CmdletProvider.ShouldContinue method is not affected by preference settings or command-line parameters; the query is always displayed to the user.
For more information about providers, see Windows PowerShell Providers.
|CmdletProvider.ShouldContinue (String, String)||Sends a query to the user to confirm that the operation should be performed. This variant of the method sends a query asking whether the action should be taken and a caption that is used when displaying the query.|
|CmdletProvider.ShouldContinue (String, String, Boolean, Boolean)||Sends a query to the user to confirm that the operation should be performed. This variant of the method sends a query asking whether the action should be taken, a display caption, and a Boolean value that indicates whether Yes-To-All and No-To-All options are made available to the user.|