PSHostUserInterface.WriteLine Method

Writes a line of characters with a newline (carriage return) character to the screen buffer. The variants of this method can write a carriage return, write a line of characters with an appended carriage return, and write a line of characters with foreground and background colors with an appended carriage return.

To write a line without appending a carriage return, see the Write method.

This method writes a line to the output display of the host, as opposed to the error display which is written to by the WriteErrorLine method.

NameDescription
PSHostUserInterface.WriteLine ()Writes a new line character (carriage return) to the output display of the host.
PSHostUserInterface.WriteLine (ConsoleColor, ConsoleColor, String)Writes a line of characters to the output display of the host with foreground and background colors and appends a newline (carriage return) character.
PSHostUserInterface.WriteLine (String)When overridden in a derived class, writes a line of characters to the output display of the host and appends a newline (carriage return) character.

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft