次の方法で共有


OutputWindowTextWriter Class

Definition

A TextWriter whose output goes to a Visual Studio output window pane.

public ref class OutputWindowTextWriter : System::IO::TextWriter, Microsoft::VisualStudio::Threading::IAsyncDisposable
public class OutputWindowTextWriter : System.IO.TextWriter, Microsoft.VisualStudio.Threading.IAsyncDisposable
type OutputWindowTextWriter = class
    inherit TextWriter
    interface IAsyncDisposable
Public Class OutputWindowTextWriter
Inherits TextWriter
Implements IAsyncDisposable
Inheritance
OutputWindowTextWriter
Implements

Constructors

OutputWindowTextWriter(IVsOutputWindowPane)

Initializes a new instance of the OutputWindowTextWriter class.

Properties

Encoding

Gets the encoding used.

Methods

Dispose(Boolean)

Completes writing and blocks for any pending messages to be written.

DisposeAsync()

Completes the writer block and returns a task that completes when all pending messages have been flushed.

Flush()

Returns when all messages posted up to this point have been written to the output window pane.

FlushAsync()

Returns a task that completes when all messages written to the output window up to this point have been written to the output window pane.

Write(Char[], Int32, Int32)
Write(String)
WriteAsync(Char)
WriteAsync(Char[], Int32, Int32)
WriteAsync(String)
WriteLine(String)
WriteLineAsync()
WriteLineAsync(Char)
WriteLineAsync(Char[], Int32, Int32)
WriteLineAsync(String)
WriteLineWithId(Guid, UInt32, String)

Output a message to IVsOutputWindowPane that can be correlated to Error tasks.

Applies to