CmdletProvider.WriteWarning Method (String)
Updated: April 27, 2016
Applies To: Windows PowerShell
Displays warning information.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
The pipeline is stopped. The pipeline was terminated either before the call was made or while the call was in progress. In general, the Windows PowerShell provider should allow the caller to catch this exception.
Useto display warnings about the activity of your provider. By default, warning output is displayed, although this can be configured with the WarningPreference shell variable or the Verbose and Debug command-line options.
For more information about providers, see Windows PowerShell Providers [ps].