This documentation is archived and is not being maintained.

Output Window (Visual Studio SDK)

The Output window is a set of text panes that you can write to and read from. Visual Studio defines these built-in panes: Build, through which projects communicate messages about builds, and General, through which Visual Studio communicates messages about the integrated development environment (IDE). Projects receive a reference to the Build pane automatically through the IVsBuildableProjectCfg interface methods, and Visual Studio offers direct access to the General pane through the SVsGeneralOutputWindowPane service. In addition to the built-in panes, you can create and manage your own custom panes.

You can control the Output window directly through the IVsOutputWindow and IVsOutputWindowPane interfaces. The IVsOutputWindow interface, which is offered by the SVsOutputWindow service, defines methods for creating, retrieving, and destroying Output window panes. The IVsOutputWindow interface defines methods for showing panes, hiding panes, and manipulating their text. An alternative way of controlling the Output window is through the OutputWindow and OutputWindowPane objects in the Visual Studio Automation object model. These objects encapsulate nearly all of the functionality of the IVsOutputWindow and IVsOutputWindowPane interfaces. In addition, the OutputWindow and OutputWindowPane objects add some higher-level functionality to make it easier to enumerate the Output window panes and to retrieve text from the panes.

Description

This example shows how to create a new Output window pane by using the IVsOutputWindow interface.

Code

No code example is currently available or this language may not be supported.

Description

This example shows how to create an Output window pane by using the OutputWindow object.

Code

No code example is currently available or this language may not be supported.

Comments

Although the OutputWindowPanes collection lets you retrieve an Output window pane by its title, pane titles are not guaranteed to be unique. When you doubt the uniqueness of a title, use the GetPane method to retrieve the correct pane by its GUID.

Description

This example shows how to delete an Output window pane.

Code

No code example is currently available or this language may not be supported.

Description

This example shows how to delete an Output window pane, given an OutputWindowPane object.

Code

No code example is currently available or this language may not be supported.

Description

This example shows how to retrieve the built-in General pane of the Output window.

Code

No code example is currently available or this language may not be supported.

Description

This example shows how to parse a standard build message for errors, and add an item to the Error window, if appropriate, before the message is sent to the Output window.

Code

No code example is currently available or this language may not be supported.
Show: