แก้ไข

แชร์ผ่าน


TestConsole Class

Definition

Provides access to in-memory standard streams that are not attached to Console.

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

Constructors

TestConsole()

Initializes a new instance of TestConsole.

Properties

Error

The stream writer for standard error.

IsErrorRedirected

Indicates whether the standard error stream has been redirected.

IsInputRedirected

Gets a value indicating whether input is redirected.

IsOutputRedirected

Indicates whether the standard output stream has been redirected.

Out

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