PSHostUserInterface.ReadLineAsSecureString Method ()
Updated: April 27, 2016
Applies To: Windows PowerShell
When overridden in a derived class, reads characters entered by the user until a newline (carriage return) character is encountered and returns the characters as a secure string.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
The host can throw this exception when it cannot complete an operation.
If this method is not implemented, the host should throw a "not implemented" exception when it receives this call.
The host can throw this exception when an error occurs while a command is running.