SystemConsole Class

Definition

Provides access to the standard streams via Console.

public ref class SystemConsole : System::CommandLine::IConsole
public class SystemConsole : System.CommandLine.IConsole
type SystemConsole = class
    interface IConsole
    interface IStandardOut
    interface IStandardError
    interface IStandardIn
Public Class SystemConsole
Implements IConsole
Inheritance
SystemConsole
Implements

Constructors

SystemConsole()

Initializes a new instance of SystemConsole.

Properties

Error

Gets the stream writer for standard error.

IsErrorRedirected

Gets a value that specifies whether the standard error stream has been redirected.

IsInputRedirected

Gets a value indicating whether input is redirected.

IsOutputRedirected

Gets a value that specifies whether the standard output stream has been redirected.

Out

Gets the stream writer for standard output.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

Write(IConsole, String)

Writes the current string value to the standard output stream.

WriteLine(IConsole, String)

Writes the current string value, followed by the current environment's line terminator, to the standard output stream.

Applies to