Compartir a través de


PSHostUserInterface.WriteLine Method

Definition

Overloads

WriteLine()

The default implementation writes a carriage return to the screen buffer. Write(String)Write(ConsoleColor, ConsoleColor, String)WriteLine(String)WriteLine(ConsoleColor, ConsoleColor, String)

WriteLine(String)

Writes characters to the screen buffer, and appends a carriage return.

WriteLine(ConsoleColor, ConsoleColor, String)

Same as WriteLine(String), except that colors can be specified.

WriteLine()

public:
 virtual void WriteLine();
public:
 virtual void WriteLine();
 virtual void WriteLine();
public virtual void WriteLine ();
abstract member WriteLine : unit -> unit
override this.WriteLine : unit -> unit
Public Overridable Sub WriteLine ()

Applies to

WriteLine(String)

Writes characters to the screen buffer, and appends a carriage return.

public:
 abstract void WriteLine(System::String ^ value);
public:
 abstract void WriteLine(Platform::String ^ value);
 abstract void WriteLine(std::wstring const & value);
public abstract void WriteLine (string value);
abstract member WriteLine : string -> unit
Public MustOverride Sub WriteLine (value As String)

Parameters

value
String

The characters to be written. null is not allowed.

See also

Applies to

WriteLine(ConsoleColor, ConsoleColor, String)

Same as WriteLine(String), except that colors can be specified.

public:
 virtual void WriteLine(ConsoleColor foregroundColor, ConsoleColor backgroundColor, System::String ^ value);
public virtual void WriteLine (ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value);
abstract member WriteLine : ConsoleColor * ConsoleColor * string -> unit
override this.WriteLine : ConsoleColor * ConsoleColor * string -> unit
Public Overridable Sub WriteLine (foregroundColor As ConsoleColor, backgroundColor As ConsoleColor, value As String)

Parameters

foregroundColor
ConsoleColor

The foreground color to display the text with.

backgroundColor
ConsoleColor

The foreground color to display the text with.

value
String

The characters to be written. null is not allowed.

See also

Applies to